[英]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.