Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi, I need to create a slicer for our software level category that uses the level as the slicer but filters if that software has YES in the column that has been selected in the slicer.
The data looks likes this
Title | level1 | level2 | level3 |
software1 | YES | YES | |
software2 | YES | ||
software3 | YES | YES |
i have created a slicer showing level1, level2 ,level3, but cannot work out how to filter the data so that when level1 is selected only software 1 and software 2 show, if level3 is selected then software3 should show etc
Any help appreciated
Solved! Go to Solution.
HI @Kerslaing,
In fact, power bi does not suitable for directly applying filters across multiple fields.
In my opinion, I'd suggest you do 'unpivot columns' on the level fields on the query editor, then you can use the raw table category and the attribute field to create a matrix.
Unpivot columns - Power Query | Microsoft Docs
After these steps, you can use unpivoted attribute and value fields as conditions to accurately filter these records.
Regards,
Xiaoxin Sheng
I cant get that to work, just keep getting incorrect syntax on the measure at the return/last bracket on the switch. But it did point me to another solution.
HI @Kerslaing,
In fact, power bi does not suitable for directly applying filters across multiple fields.
In my opinion, I'd suggest you do 'unpivot columns' on the level fields on the query editor, then you can use the raw table category and the attribute field to create a matrix.
Unpivot columns - Power Query | Microsoft Docs
After these steps, you can use unpivoted attribute and value fields as conditions to accurately filter these records.
Regards,
Xiaoxin Sheng
@Kerslaing , Create different Filter for that
Measure =
var _fil = Switch(selectedvalues(Level[Level]) ,
"Level1", filter(Table, Table[Level1]="Yes"),
"Level3", filter(Table, Table[Level2]="Yes"),
"Level4", filter(Table, Table[Level3]="Yes") )
return
countrows(_fil)
Use this with title in the visual
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
89 | |
79 | |
65 | |
64 | |
58 |
User | Count |
---|---|
171 | |
115 | |
109 | |
74 | |
69 |