Forum Discussion
Custom slicer with multiple conditions
- 4 years ago
Hi atpbi10 ,
Please create a new table in Power Query Editor:
let Source = Table.SelectColumns(Table, "B"), #"Added Custom" = Table.AddColumn(Source, "SelectValue", each Table[B]), #"Expanded SelectValue" = Table.ExpandListColumn(#"Added Custom", "SelectValue"), #"Removed Duplicates" = Table.Distinct(#"Expanded SelectValue"), #"Filtered Rows" = Table.SelectRows(#"Removed Duplicates", each ([SelectValue] <= [B] and ([B] = "Other" or [SelectValue] <> "Other"))) in #"Filtered Rows"Then create a relationship in 'Slicer'[SelectValue] and 'Table'[B].
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi atpbi10 ,
Correct me if I am wrong, you want multi select in your slicer? if yes then you need to enable below property of slicer and if you want multiselect without pressing CTRL then you can enable show "select all" option
Thanks,
Samarth
No, I want to create a custom slicer/measure that allows me to create custom selection.
So in the slicer I would have the option "Top 25" that will select all values that have "Top 25" and "Top 10" in column B.
It is not multi select I need a custom select.
Currently in slicer when I select Top25 only one row is shown in my example. it should show 3 rows (both top10 and top25)