Forum Discussion
Anonymous
7 years agoNot applicable
Group by category calculation
Please help me to find correct answer: Fact Table: FactStudent SchoolId StudId InSession S1 11 5 SchoolLevelP= DISTINCT COUNT(StudId (NOTE: Those are in insession 7,8,9) ...
- 7 years ago
hi, Anonymous
You may try this formula
Measure2 = CALCULATE ( DISTINCTCOUNT ( FactStudent[SchoolId] ), FILTER ( ADDCOLUMNS ( DimSchool, "SchoolLevelP", CALCULATE ( DIVIDE ( CALCULATE ( COUNT ( FactStudent[Schoolid] ), FILTER ( FactStudent, AND ( FactStudent[InSession] >= 7, FactStudent[InSession] <= 9 ) ) ), COUNT ( FactStudent[StudId] ) ) * 100 ) ), COUNTROWS ( FILTER ( Configuration, [SchoolLevelP] >= Configuration[MinValue] && [SchoolLevelP] < Configuration[MaxValue] ) ) > 0 ) )Result:
Best Regards,
Lin
- Anonymous7 years ago
Thanks! Its working as expacted result.
Anonymous
7 years agoNot applicable
Thanks! Its working as expacted result.
v-lili6-msft
7 years agoCommunity Support
hi, Anonymous
It's pleasant that your problem has been solved, could you please mark my reply as Answered?
Best Regards,
Lin