Power Query 中的数据处理与转换技巧
1. 动态过滤数据
我们可以从 "Removed Other Columns" 步骤中选择 Product Subcategory 列值为 "Bike Racks" 的行。若要修改代码,可选择 Product Subcategory 列值包含在 Approved Subcategories 表的 Approved Product Subcategories 列中的行。
需将 Table.SelectRows(table, condition) 函数的条件参数从 ([Product Subcategory] = "Bike Racks") 更改为 List.Contains(#"Approved Subcategories"[Approved Product Subcategories], [Product Subcategory]) 。
完成操作后,将文件另存为 Chapter 5, Common Data Preparation Steps, Dynamic Filtering, Applied Filter.pbix 。
2. 使用分组功能
创建汇总表是数据建模中非常有价值且高级的技术,能管理 Power BI 文件大小,提升性能和减少内存消耗。在 Power Query 中,分组功能还可用
超级会员免费看
订阅专栏 解锁全文
2369

被折叠的 条评论
为什么被折叠?



