分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
Power Query的本质——M语言。
Power Query 在Excel2010和2013中是以插件形式存在的,Excel2016中已经内置这一功能了,其可见微软对其的重视。
值得欣慰的是,PQ不仅为我们快速导入不同数据源数据提供便利,也为我们提供了一系列新的函数,PQ中的公式简称为M公式,与PowerPivot中的DAX表达式是两兄弟。
什么是M语言:用一种既定的函数公式来记录在power query中的操作。这些函数公式的集合,统称为M语言。
怎样学M语言的公式?
(https://msdn.microsoft.com/library/Mt253322?ui=en-US&rs=en-US&ad=US)
使用M语言的注意事项:
函数区分大小写 |
数据类型很严格 |
没有单元格引用的概念 |
必选与可选参数的区分 |
下面则是具体的公式:
Power Query (informally known as "M") formula categories
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
The following tables describe the Power Query formula categories that can be used to manually create or modify queries. These formula functions can also be used in the Power BI Designer, in the Query view.
Constants
Function | Description |
---|---|
Number.NaN | Represents 0/0. |
Number.NegativeInfinity | Represents -1/0. |
Number.PositiveInfinity | Represents 1/0. |
Number.Epsilon | Returns the smallest possible number. |
Number.E | Returns 2.7182818284590451, the value of e up to 16 decimal digits. |
Number.PI | Returns 3.1415926535897931, the value for Pi up to 16 decimal digits. |
Information
Function | Description |
---|