Forum Discussion
Count by Criteria
- 8 years ago
Measure > 30 = CALCULATE(COUNTROWS(Table2),Table2[No.] < 30)
Measure 30&70 = CALCULATE(COUNTROWS(Table2),Table2[No.] >= 30, Table2[No.] < 70)
Measure70 = CALCULATE(COUNTROWS(Table2),Table2[No.] >=70)
that should give you the idea
and gives this result
Measure > 30 = CALCULATE(COUNTROWS(Table2),Table2[No.] < 30)
Measure 30&70 = CALCULATE(COUNTROWS(Table2),Table2[No.] >= 30, Table2[No.] < 70)
Measure70 = CALCULATE(COUNTROWS(Table2),Table2[No.] >=70)
that should give you the idea
and gives this result
- Naveennegi1198 years agoHelper III
Hi vanessafvg
Can it possible if criteria range is not filfull condition.
it show 0 instead of blank
Sub Count <30 >=30 - <70 >=70 A 10 5 5 B 10 5 3 2 See in A >=30 - <70 catagory
Regards,
NICK
- vanessafvg8 years agoCommunity Champion
Naveennegi119 Measure70 = CALCULATE(COUNTROWS(Table2)+0,Table2[No.] >=70)
you can just add +0
you can also use an if statement with isblank but adding + is easier
- Naveennegi1198 years agoHelper III