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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors