Forum Discussion
Anonymous
7 years agoNot applicable
Filter using a measure with Distinct
Hello I’ve have a table that contains student module data. A student can have multiple modules. There is a Module_Passed flag that is either 0 or 1 There are measures (see attached code) to ...
v-frfei-msft
7 years agoCommunity Support
Hi Anonymous,
Create a measure sa below. If it doesn't meet your requirement, kindly share your excepted result to me.
Students with All Modules Passed2 = CALCULATE(DISTINCTCOUNT(Table1[Student_ID]),ALL(Table1))-CALCULATE(DISTINCTCOUNT(Table1[Student_ID]),FILTER(ALL(Table1),Table1[Module_Passed]=0))
Regards,
Frank
v-frfei-msft
7 years agoCommunity Support
Hi Anonymous,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank