【问题标题】:Power BI : Split Comma Separated Values into Filter ListPower BI:将逗号分隔的值拆分为筛选器列表
【发布时间】:2019-10-16 00:54:15
【问题描述】:

我将这些数据加载到我的 PowerBI 中

ID Color Group                       SubGroup
1  Blue  Clothes,Furniture,Kitchen   Men,Women
2  Red   Electronics,Clothes         All
3  Pink  Books,Clothes,Kitchen       Women,Girls,Baby
4  Black Electronics,Books,Furniture Men,Women,Boys,Girls

我希望我的过滤器显示此列表

过滤器 1

Groups
-----------
Clothes
Furniture
Kitchen
Electronics
Books

过滤器 2

SubGroups
-----------
Men
Women
Girls
Baby
Boys
All

所以当用户勾选过滤器 1 中的衣服框时,所有记录将被过滤到其组中有衣服的记录。

当用户在过滤器 2 中勾选女性框时,所有记录将被过滤到其子组中包含女性的记录。

我怎样才能做到这一点?

我尝试直接按组和子组过滤,但我在过滤器中得到了这个

过滤器 1

Groups
-----------
Clothes,Furniture,Kitchen
Electronics,Clothes
Books,Clothes,Kitchen
Electronics,Books,Furniture

过滤器 2

SubGroups
-----------
Men,Women
All
Women,Girls,Baby
Men,Women,Boys,Girls

这不是我想要的

【问题讨论】:

    标签: powerbi


    【解决方案1】:

    在查询编辑器中,选择您的组/子组列,选择拆分列>> by Delimiter

    现在选择逗号作为分隔符,并在高级选择中拆分为行:

    您可以将结果列用作切片器/过滤器:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-06
      • 2018-09-25
      • 2012-05-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多