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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Apple08
Helper IV
Helper IV

Graphics to compare data

Hi All

 

I have a set of data for number of staff by grade, also another set of data for number of staff by grade which has achieved awards.  I have two seperate column charts for these two sets of data.  However, I would like to compare the number of staff with awards in grade vs the total number of staff in the grade.

 

Please could anyone suggest the way how to do it and what kind of grahics would be useful.  Many thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Apple08 ,

 

Suppose you have a relationship between two tables. Ensure that the direction of the relationship is both.

4.png

number of staff = COUNT('Table'[name])
number of staff with awards = COUNT('Table (2)'[name])

5.png

 

If there's no relationshi between tables. Modify the mesure as

number of staff with awards = CALCULATE(COUNT('Table (2)'[name]),FILTER('Table (2)',[level]=MAX('Table'[level])))

 The following is the same as before.

number of staff = COUNT('Table'[name])

 6.png

 

 

Best Regards,

Stephen Tao

 

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

4 REPLIES 4
Anonymous
Not applicable

Hi @Apple08 ,

 

Suppose you have a relationship between two tables. Ensure that the direction of the relationship is both.

4.png

number of staff = COUNT('Table'[name])
number of staff with awards = COUNT('Table (2)'[name])

5.png

 

If there's no relationshi between tables. Modify the mesure as

number of staff with awards = CALCULATE(COUNT('Table (2)'[name]),FILTER('Table (2)',[level]=MAX('Table'[level])))

 The following is the same as before.

number of staff = COUNT('Table'[name])

 6.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Please if is it possible to show the percentage for each award level vs the staff level?

Excellent!  Many thanks for your help Stephen 🙂

lbendlin
Super User
Super User

Create another column for the number of staff that have not gotten awards,  and then use a stacked column chart to show both scenarios on top of each other.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors