DAX 获取忽略切片器的度量并连接包含特定字符串的列中的值
我有一个表格如下:
name | state |
---|---|
bob | Joyful |
Bob | Joyous |
Bob | Sad |
Susan | Joyful |
我为名称设置了切片器。我需要一个度量,它将显示在卡片中,这是包含测试“joy”并且与切片器过滤的名称相匹配的所有状态的串联列表。
例如,如果我选择 bob,输出应该是: 快乐,快乐
如果我选择苏珊,输出应该是 我有以下
措施,它仅连接与过滤名称匹配的所有值:
measure = CONCATENATEX(VALUES('test'[state]),'test'[state], ", ")
如何让它仅连接包含“joy”的值?
如果我为状态添加另一个切片器并选择“joyful”,则输出仅是“joyful”一词。如何让我的度量忽略状态切片器中的选定值并仅查看名称切片器中的选定值?
I have a table as follows:
name | state |
---|---|
bob | joyful |
bob | joyous |
bob | sad |
susan | joyful |
I set up a slicer for the names. I need a measure, which will display in a card, a concatenated list of all states that contain the test "joy" AND that match the filtered name from the slicer.
For example, if I select bob, the output should be:
joyful, joyous
If I select susan, the output should be
joyful
I have the following measure, which only concatenates all values that match the filtered name:
measure = CONCATENATEX(VALUES('test'[state]),'test'[state], ", ")
How do I get it to only concatenate the values that contain "joy"?
if I add another slicer for the state and select joyful, the output is only the word joyful. How do I get my measure to ignore the selected values in the state slicer and only look at the selected values from the name slicer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论