46、Power Query-Table.FillDown函数简介
来源:互联网 发布:有秒杀软件吗 编辑:程序博客网 时间:2024/05/21 07:08
本节跟大家分享一个经验,函数Table.FillDown的使用。
格式:
Table.FillDown(table as table, columns as list) as table
Returns a table from the table
specified where the value of a previous cell is propagated to the null-valued cells below in the columns
specified.
例子:
Return a table with the null values in column [Place] filled with the value above them from the table.
Table.FillDown(Table.FromRecords({[Place=1, Name="Bob"], [Place=null, Name="John"], [Place=2, Name="Brad"], [Place=3, Name="Mark"], [Place=null, Name="Tom"], [Place=null, Name="Adam"]}), {"Place"})
下面我们看一个例子,比如学生成绩大于等于60的显示合格,否则显示空(用条件列判断)。
此时使用向下填充没有问题。
若更改条件公式。
Table.AddColumn(更改的类型, "Custom", each if [成绩] >= 60 then "合格" else null )
Table.AddColumn(更改的类型, "Custom", each if [成绩] >= 60 then "合格" else "")
这个时候再向下填充是不起作用的。
满足FillDown的条件是要填充的单元格必须是null值,不是""。
例子没有任何意义,仅作说明,勿要见怪。
- 46、Power Query-Table.FillDown函数简介
- 39、Power Query-Text.Combine函数应用
- 40、Power Query-Text.Combine函数进阶
- 42、Power Query-Text.Remove函数应用
- 43、Power Query-函数综合应用
- Power Query
- Table 函数使用简介
- Power Table
- 32、Power Query-利用自定义函数获取指定页数数据
- 41、Power Query-Text.Combine函数进阶2
- 44、Power Query-具体查看函数的方法
- 30、Power Query-搞清Power Query中的表结构
- 7、Power Query-合并查询
- 14、Power Query-行列管理
- 18、Power Query-SQL筛选
- 34、Power Query-中国式排名
- JDBC query table definition
- 在Power Query 中实现套用自定义函数查询(调用外部service)
- struts 的 include标签
- org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map
- 2017美国数学建模ICM E题(环境) 翻译 需要可持续城市!(Sustainable Cities Needed!)
- 使用Android Studio新建Project并建立多个module
- 为何导热硅脂清洗会出现黑物质
- 46、Power Query-Table.FillDown函数简介
- python flask发送邮件嵌入图片 Outlook
- 排序之冒泡算法实例
- 【学习笔记之Openlayers3】要素保存篇(第四篇)
- mysql修改事务隔离级别
- 网页悬浮球模拟
- UEditor-从客户端(editorValue="<p>xxxx</p>")中检测到有潜在危险的 Request.Form 值。
- ionic2+angular2
- AndroidStudio如何配置NDK/JNI开发环境