Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |