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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
bcbuckley13
Helper III
Helper III

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

@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])

@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.

 

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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