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
m_roussakis
Helper III
Helper III

DAX help to count 100% completion

I have a matrix table which shows the training completion rate per region and employee. 

I have about 8000 employees, each assigned multiple courses to complete. 

 

As you can see from the screenshot, user Kelly has 14 courses assigned to them, and 0% are complete.

 

m_roussakis_0-1655413322468.png

 

I'd like to add a column which counts Total users who have an overall completion rate of 100%. So all courses they have assigned to them show complete

 

Thanks

1 ACCEPTED SOLUTION

@m_roussakis 

pls see the attachment below. It will be better if you can provide some dummy data and expected output





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

Proud to be a Super User!




View solution in original post

8 REPLIES 8
ryan_mayu
Super User
Super User

@m_roussakis 

could you pls provide the sample data?





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

Proud to be a Super User!




I can't really share the data. However its quite a simple layout. 

 

I have:

 

Column A = User ID

Column B = Course Title

Column C = Course Completion status

Column D = Location

So for example a user with ID 12345 could have 10 courses showing in column B. Of these, 8 are complete.

 

I need to know which users have 100% of the assigned courses showing complete. 

 

And I don't need to know how to calculate the percentage of completed courses....that I already have. I need to be able to display the COUNT of 100% complete users per location as a value in a matrix table. 

 

Thanks

@m_roussakis 

pls see the attachment below. It will be better if you can provide some dummy data and expected output





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

Proud to be a Super User!




I need to make an edit to the gtreat DAX you gave me.

How can I EXCLUDE specific rows from this calculation. So I want to exclude some Course Titles:

 

Column A = User ID

Column B = Course Title (EXCEPT where title = "ABC123")

Column C = Course Completion status

Column D = Location

 

Thanks

I tried to do it myself and it's not working:

 

Here's my attempt. My addition is shown underlined. 

 

User Completion =
VAR tbl=SUMMARIZE('Training','Training'[COUNTRY],Training[User - User ID],"completed",DIVIDE(CALCULATE(COUNTROWS('Training'),FILTER('Training','Training'[Transcript - Transcript Status]="Completed" || 'Training'[Training - Training Title]<>"MRS - Module 18: Additional Features - August 20220" )),CALCULATE(COUNTROWS('Training'),ALLEXCEPT('Training','Training'[User - User ID]))))
return COUNTROWS(FILTER(tbl,[completed]=1)) +0

@m_roussakis 

maybe you can try this

Measure =
VAR tbl=SUMMARIZE('Table','Table'[Location],'Table'[User ID],"complete",DIVIDE(CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Course Completion status]="Y" && 'Table'[Course Title]<>"ABC123")),CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[User ID]),'Table'[Course Title]<>"ABC123")))
return COUNTROWS(FILTER(tbl,[complete]=1))
 
pls see the attachment below




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

Proud to be a Super User!




This worked beautifully. Thanks.

you are welcome





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

Proud to be a Super User!




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