Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello All,
I have a hierarchy of metrics and I want the same to be displayed on the table based on the slicer selection.
For example:
This is the school level data and all of the columns other than the first one is numeric.
ID | # Students | Students Attendance | Teachers Attendance | Average Class Size |
121 | 78 | 0.8 | 0.94 | 23 |
134 | 54 | 0.7 | 0.8 | 12 |
Another table is categories of these metrics
Category | Metrics |
Students | # Students |
Students | Students Attendance |
Workforce | Teachers Attendance |
School | Average Class Size |
I have a slicer in my dashboard which shows Category values.
I want to create a table which shows me ID and the relevant metrics based on the category selection. I am using simple table graph available in Power BI.
If I select Students in my slicer, the table should show - ID, # Students and Students Attendance columns.
Could you help me how to solve this?
Thanks!
Solved! Go to Solution.
Hi @harshanand007,
You could unpivot the first table.
Establish a one to many relationship between two tables based on Metrics field.
Then, use a Matrix visual to display data from Table1. Add category column into slicer.
Alternatively, you could try the suggestions in below articles:
Dynamic Column Based on Slicer Selection
Knowledge Base--Dynamic column based on slicer selection
Best regards,
Yuliana Gu
Hi @harshanand007,
You could unpivot the first table.
Establish a one to many relationship between two tables based on Metrics field.
Then, use a Matrix visual to display data from Table1. Add category column into slicer.
Alternatively, you could try the suggestions in below articles:
Dynamic Column Based on Slicer Selection
Knowledge Base--Dynamic column based on slicer selection
Best regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |