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 ,
This video might help you:
https://www.youtube.com/watch?v=QtEt-QI3oe4
Please hit the thumbs up if it does. Thanks.
No it doesnt sovle the problem. I already ranked the values according to my internal algorithm using Python. They have the labels in B column, I need a custom slicer/filter that can accept multiple conditions.
Someting like SWITCH but I dont know how to make it work.