简体   繁体   English

Power BI,如何显示多个选定的值?

[英]Power BI, how do I show multiple selected values?

So I have a graph where I have added 3 different measures.所以我有一个图表,我在其中添加了 3 个不同的度量。 I also have a slicer with values "a", "b", "c" and "Select all".我还有一个切片器,其值为“a”、“b”、“c”和“全选”。 I would like to choose a letter on the slicer and have the graph show the right measure.我想在切片器上选择一个字母并让图表显示正确的度量。 Therefor measure 1 will show with the following condition: measure 1 = if(selectedvalue([slicer])=="a", expression measure 1) and the same for measure 2 and 3. This all works fine as long as I only choose one letter at the time.因此度量 1 将显示以下条件:度量 1 = if(selectedvalue([slicer])=="a", 表达式度量 1) 度量 2 和 3 相同。只要我只选择,这一切都可以正常工作当时一封信。 I would really really like to have multiple measures show simultaneously as to compare them but if I select multiple values in the slicer or if I select "select all" nothing will show in the graph.我真的很想同时显示多个测量值来比较它们,但是如果我 select 切片器中有多个值,或者如果我 select “全选”,则图中不会显示任何内容。

I thought first that selectedvalue would just show a string with multiple concatenated values so I tried containsstring(selectedvalue([slicer]), "a") but I now understand that "selectedvalue" will go blank when multiple values are selected.我首先认为SelectedValue只会显示一个带有多个串联值的字符串,因此我尝试了包含(selectedValue([SliCer]),“ A”),但我现在明白,“选择Z34D1F91FB2E514B8576FAB1A75A75A89A6BZ” will Z34D1F91FB2E514B8579A6BZ black ne Prolace ne Propper。 Same goes for "values" and for "hasonevalue". “价值观”和“hasonevalue”也是如此。

Does anyone know of a function that shows which MULTIPLE values are selected?有谁知道 function 显示选择了哪些 MULTIPLE 值?

Please don't suggest taking away the condition and just having the graph show all the measures because in reality I have 10 and not 3 measures and it will become unreadable.请不要建议取消条件并仅让图表显示所有措施,因为实际上我有 10 个而不是 3 个措施,它将变得不可读。 Is there another way than splitting the slicer column up into 10 individual slicers?除了将切片器列拆分为 10 个单独的切片器之外,还有其他方法吗? Thank you!谢谢!

This will give you a CSV:这将为您提供 CSV:

CONCATENATEX ( VALUES ( 'Table'[Slicer] ) , [Slicer] , ",")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Power BI 中,使用 DAX。 如何从切片器获取多个(文本)值/字符串? - In Power BI, using DAX. How do I get multiple (text) values/strings from a slicer? 如何让 Power bi 按原样显示所有数据而不是错误? - How do I make Power bi show all data as is and not as error? Power BI - 如何显示计数的平均值 - Power BI - How do I show an average of a count 如何创建表格以获取 Power Bi 中的唯一值 - How do I create a table to get unique values in Power Bi 如何在 Power BI 中有连续的日期和 0 值 - How do I have continuous dates and 0 values in Power BI 如何始终返回字段为 False 的值,但在 Power BI 中该字段为 True 时是否显示值? (在正文中措辞更好) - How do I always return values where a field is False, but toggle if the values show when the field is True in Power BI? (Worded better in Body) 如何通过 Power BI 中的分隔符将多列拆分成行? - How do I split multiple columns into rows by delimiter in Power BI? 如何根据 Power Query 中 Power BI 参数中逗号分隔的值列表删除行? - How do i remove rows based on comma-separated list of values in a Power BI parameter in Power Query? 如何使用Power BI上的DAX在切片器上捕获所选值? - How to capture the selected values on a slicer using DAX on Power BI? 在 Power BI 饼图中显示选中和剩余 - Show selected and remaining in Power BI pie chart
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM