PowerQuery技巧之数据类型 |
您所在的位置:网站首页 › query类型 › PowerQuery技巧之数据类型 |
中,我们经常使用如 ="NO."&1 得到 "NO.1" ,但是如果在 PQ 中这么操作,就会发现报错了。这是因为 PQ 对数据类型非常严 格,数字就是数字,文本就是文本,数字和文本不能放一起运算。 在 PQ 中数据类型比较多,如下: 类型 举例 Null null Logical true false Number 0 1 -1 1.5 2.3e-5 Time #time(09,15,00) Date #date(2017,06,30) DateTime #datetime(2017,06,30,09,15,00) DateTimeZone #datetimezone(2017,06,30,09,15,00,09,00) Duration #duration(0,1,30,0) Text "hello" Binary #binary("AQID") List {1,2,3} Record [A=1,B=2] Table #table({"X","Y"},{{0,1},{1,0}}) Function (x)=>x+1 Type type {number} type table [A=any,B=text] 如果需要对数据类型转换,则需要用到转换函数,如要得到 "NO.1" |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |