Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
wilfredtsk
Helper I
Helper I

Measure: Displaying "cluster data"

Hi PowerBI pros, need help and advice pls.

Am trying to display chart with clustering of data for performance appraisal, i.e.

 

  • Number of staff which are B performance and above
  • Number of staff which are B- performance and below

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-

1 ACCEPTED 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.
1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

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


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @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

@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.
1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.