cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

How do I Calculate % of users that have "Acquired" all three courses

Hello,

I have a report that includes three different courses. I want to calculate the percentage of users that have completed all three.

 

Do I have to create a new column or is this just a new measure?

 

These are the first few columns that include the user data.

 

bcbuckley13_0-1598282594608.png

 

and I want to check the "Curriculum Status" column to see if each user has Acquired all three.

 

2020-08-24_10-24-54.jpg

1 ACCEPTED SOLUTION

Hi @bcbuckley13 ,

 

Please refer to my DAX.

v-lionel-msft_0-1598605753668.png

Measure1 = 
CALCULATE(
    COUNT(Sheet3[Curriculum Status]),
    FILTER( 
        ALL(Sheet3),
        Sheet3[Name] = MAX(Sheet3[Name]) && Sheet3[Curriculum Status] = "Acquired"
    )
)
Measure2 = 
VAR y = 
CALCULATE(
    DISTINCTCOUNT(Sheet3[Name]),
    FILTER(
        Sheet3,
        [Measure1]= 3
    )
)
VAR z = 
CALCULATE(
    DISTINCTCOUNT(Sheet3[Name]),
    ALL(Sheet3)
)
RETURN
DIVIDE(
    y, z
)

v-lionel-msft_1-1598605841555.png

 

Best regards,
Lionel Chen

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
Super User IV
Super User IV

@bcbuckley13 , not very clear do not see any user id, This will give the users who has required all three Curriculum 


countx(filter(summarize(Table,Table[user],"_1" ,distinctcount([Curriculum ]),"_1" ,calculate(distinctcount([Curriculum ]), Table[Curriculum Status] ="Acquired")), [_1]=3 && [_1]=[_2]),[user])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

@amitchandak 

 

I think I'm close, but still can't get it.

 

Percent All 3 Complete = countx(filter(summarize('In-role Training Completions (BCM, Food Safety, Contactless)','In-role Training Completions (BCM, Food Safety, Contactless)'[GPN],"GPN" ,
distinctcount([Curriculum]),"Contactless Service PH US" ,calculate(distinctcount([Curriculum]), "2020 Food Safety for Team Member, 'In-role Training Completions (BCM, Food Safety, Contactless)[Curriculum Status] ="Acquired")),
[]=3 && [_1]=[_2]),[user])
 
Here are the column headers.
Person Organization NameStore IDNameUsernameGPNJob RoleCurriculumAssigned OnAcquired OnCurriculum Status

Hi @bcbuckley13 ,

 

Please refer to my DAX.

v-lionel-msft_0-1598605753668.png

Measure1 = 
CALCULATE(
    COUNT(Sheet3[Curriculum Status]),
    FILTER( 
        ALL(Sheet3),
        Sheet3[Name] = MAX(Sheet3[Name]) && Sheet3[Curriculum Status] = "Acquired"
    )
)
Measure2 = 
VAR y = 
CALCULATE(
    DISTINCTCOUNT(Sheet3[Name]),
    FILTER(
        Sheet3,
        [Measure1]= 3
    )
)
VAR z = 
CALCULATE(
    DISTINCTCOUNT(Sheet3[Name]),
    ALL(Sheet3)
)
RETURN
DIVIDE(
    y, z
)

v-lionel-msft_1-1598605841555.png

 

Best regards,
Lionel Chen

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

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors