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 PowerBI pros, need help and advice pls.
Am trying to display chart with clustering of data for performance appraisal, i.e.
I know I need to use measure, but don't know how to go about doing it.
Here is the sample data.
STAFF NAME | GRADING |
Staff A | B |
Staff B | B |
Staff C | B |
Staff D | B |
Staff E | B |
Staff F | B+ |
Staff G | B- |
Staff H | B- |
Staff I | B+ |
Staff J | B- |
Staff K | B- |
Staff L | C |
Staff M | C |
Staff N | C |
Staff O | B+ |
Staff P | C+ |
Staff Q | C |
Staff R | B- |
Staff S | B+ |
Staff T | A |
Staff U | B+ |
Staff V | B+ |
Staff W | B- |
Staff X | B- |
Staff Y | C |
Staff Z | B- |
Solved! Go to Solution.
@wilfredtsk,
Please replace the Grade table to your table name in the following DAX.
B and Higher = CALCULATE( COUNT('Grade Table'[STAFF NAME]), 'Grade Table'[GRADING] in {"A" , "B+", "B" })
B- and Lower= CALCULATE( COUNT('Grade Table'[STAFF NAME]), 'Grade Table'[GRADING] in {"B-" , "C+", "C" })
And you can create a chart as shown in the following screenshot.
Regards,
Lydia
Hi @wilfredtsk,
Try to use this measures below:
B and Higher = CALCULATE( COUNT(Grades[STAFF NAME]), Grades[GRADING] in {"A" , "B+", "B" }) B- and lower = CALCULATE( COUNT(Grades[STAFF NAME]), Grades[GRADING] in {"B-" , "C+", "C" })
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @MFelix,
Thank you for the speedy reply. It don't seem to work as the grades are highlighted in "red"
Also, once I have the measure, how can I display it as a chart?
Sorry for the trouble.
@wilfredtsk,
Please replace the Grade table to your table name in the following DAX.
B and Higher = CALCULATE( COUNT('Grade Table'[STAFF NAME]), 'Grade Table'[GRADING] in {"A" , "B+", "B" })
B- and Lower= CALCULATE( COUNT('Grade Table'[STAFF NAME]), 'Grade Table'[GRADING] in {"B-" , "C+", "C" })
And you can create a chart as shown in the following screenshot.
Regards,
Lydia
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 |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |