Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Afternoon everyone,
I have a load of tiered measures and have run into a problem. I use this to calculate the number of students below 90%
Persistent Absence = VAR __ISINSCOPE = ISINSCOPE ( Attendance[Year] ) VAR __PACore = CALCULATE(DISTINCTCOUNT(Attendance[UPN-SUID]),FILTER( VALUES('Attendance'[UPN-SUID]), [Attendance Percentage YTD] <= 0.90)) RETURN IF ( __ISINSCOPE, __PACore, CALCULATE(__PACore,NOT('Attendance'[Year] IN {"Nursery", "Reception"} )))
I then use the following to find the percentage:
Persistent Absence % = Divide([Persistent Absence YTD], DISTINCTCOUNT(Attendance[UPN-SUID]))
I then have multiple measures that give me breakdowns of the percentage such as:
Male Persistent Absence % YTD = Calculate([Persistent Absence % YTD], 'Student Database (New)'[Gender] IN {"Male"})
The problem is that I only want to filter the numerator of the second measure by the 3rd and not the denominator. Is there a way to make:
Persistent Absence % = Divide([Persistent Absence YTD], DISTINCTCOUNT(Attendance[UPN-SUID]))
the element in bold not filterable by the 'Student Database (New)' table?
The alternative is editing multiple measures rather than just one.
Thanks,
Stan
hi @StanleyBlack ,
I'd like to suggest you take a look at following link to use all function to ignore specific filters:
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT
Regards,
Xiaoxin Sheng
User | Count |
---|---|
80 | |
78 | |
70 | |
70 | |
54 |
User | Count |
---|---|
107 | |
99 | |
88 | |
79 | |
67 |