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.
Hi
I have a list of teachers and students and there students current status like below. What I want to do is calculate percentages based on their status so I can see a withdrawn status.
Any help is appreciated, thanks
Solved! Go to Solution.
Hi @WJ876400
Assuming students appear only once per teacher, try this:
1. Place Table1[Teacher] in the rows on a matrix visual
2. Place Table1[Status] in the columns of the matrix visual
3. Create this measure, format as %, and place it in values of the matrix
Measure = DIVIDE ( COUNT ( Table1[Student] ), CALCULATE ( COUNT ( Table1[Student] ), ALL ( Table1[Status] ) ) )
Please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. A screen cap doesn't allow people to readily copy the data and run a quick test and thus decreases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).
@WJ876400 Try matrix visual as below
Proud to be a PBI Community Champion
Hi @WJ876400
Assuming students appear only once per teacher, try this:
1. Place Table1[Teacher] in the rows on a matrix visual
2. Place Table1[Status] in the columns of the matrix visual
3. Create this measure, format as %, and place it in values of the matrix
Measure = DIVIDE ( COUNT ( Table1[Student] ), CALCULATE ( COUNT ( Table1[Student] ), ALL ( Table1[Status] ) ) )
Please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. A screen cap doesn't allow people to readily copy the data and run a quick test and thus decreases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).
Thanks @AlB that worked. Thank you for the tip on sharing data so it can be tested
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |