Forum Discussion
Count from different tables
- 7 years ago
Cleaned it up a bit, but try this.
B - Approved As Noted =
CALCULATE (
CALCULATE ( COUNT ( 'MAT Register'[Status]), 'MAT Register'[Status]="B" ) ) +
CALCULATE ( COUNT ( 'MET Register'[Status]), 'MET Register'[Status]="B" ) ) +
CALCULATE ( COUNT ( 'MIR Register'[Status]), 'MIR Register'[Status]="B" ) ) +
CALCULATE ( COUNT ( 'SD Register'[Status]), 'SD Register'[Status]="B" ) ) +
CALCULATE ( COUNT( 'Technical Register'[Status]), 'Technical Register'[Status]="B" ) ) +
CALCULATE ( COUNT ( 'WIR Register'[Status]), 'WIR Register'[Status]="B" ) ) +
0
)
I think COUNT can only use one column.
Have you tried CALCULATE( COUNT(AAA[xxx]) + COUNT(BBB[yyy]) + COUNT(CCC[zzz]))?
But then how i will be able to Count Status "B" only
That will Calculate All Status A,B,C,D
- tkrupka7 years ago
Resolver II
Cleaned it up a bit, but try this.
B - Approved As Noted =
CALCULATE (
CALCULATE ( COUNT ( 'MAT Register'[Status]), 'MAT Register'[Status]="B" ) ) +
CALCULATE ( COUNT ( 'MET Register'[Status]), 'MET Register'[Status]="B" ) ) +
CALCULATE ( COUNT ( 'MIR Register'[Status]), 'MIR Register'[Status]="B" ) ) +
CALCULATE ( COUNT ( 'SD Register'[Status]), 'SD Register'[Status]="B" ) ) +
CALCULATE ( COUNT( 'Technical Register'[Status]), 'Technical Register'[Status]="B" ) ) +
CALCULATE ( COUNT ( 'WIR Register'[Status]), 'WIR Register'[Status]="B" ) ) +
0
)- Anonymous7 years agoNot applicable
Thanks Billion