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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
DemingPDCA
Helper II
Helper II

Filtering for "Highest Level" option in a table

I have a table of training per person that looks something like the Table below. I'd like to be able to count and filter and create tables for the number of Yellow Belts vs Green Belts vs Black Belts I have. I'd also like to be able to create some calculations (Ex % of people on the list that have a yellow belt, % of people who have completed the green belt course that are green belt certified).

 

I first went down the path of trying to create conditional columns for each training option, but I definitely think I'm doing this the hard way. Does anyone have suggestions for how to get started?

 

PersonTraining
Person AYellow Belt

Person A

Green Belt Course
Person AGreen Belt Certified

Person B

Yellow Belt

Person C

Yellow Belt

Person C

Green Belt Course

Person D

Yellow Belt

Person D

Green Belt Course

Person D

Green Belt Certified

Person D

Black Belt Course

Person D

Black Belt Certified
1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @DemingPDCA 

 

Your table is in a proper structure for calculation. But it is not clear which courses have been completed. Does this table only record completed courses by all people? Are "Green Belt Course" and "Green Belt Certified" the same course? 

 

Once these problems are clear, you can then create measures to make the calculations you want. You can add different filtering conditions to measures. For example, 

Number of Persons = DISTINCTCOUNT ('Table'[Person])

Number of Persons having Yellow Belt = CALCULATE(DISTINCTCOUNT ( 'Table'[Person] ),'Table'[Training] = "Yellow Belt")

 

Add measures to appropriate visuals to display the results.

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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