38 Power Query-背后的贤内助 M 语言

分享一下我老师大神的人工智能教程!零基础,通俗易懂!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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值