Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
and I want to check the "Curriculum Status" column to see if each user has Acquired all three.
Solved! Go to Solution.
Hi @bcbuckley13 ,
Please refer to my DAX.
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
)
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.
@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])
I think I'm close, but still can't get it.
Person Organization Name | Store ID | Name | Username | GPN | Job Role | Curriculum | Assigned On | Acquired On | Curriculum Status |
Hi @bcbuckley13 ,
Please refer to my DAX.
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
)
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.
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |