Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Count from different tables

 I have 6 tables with Status colum having status A, b c. I want to Count Total with Text String in All tables and below is what i tried but no result . Please help

 

B - Approved As Noted = CALCULATE(COUNT('MAT Register'[Status])="B",('MET Register'[Status])="B",('MIR Register'[Status])="B",('SD Register'[Status])="B",('Technical Register'[Status])="B",('WIR Register'[Status])="B")+0
1 ACCEPTED SOLUTION

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
)

View solution in original post

4 REPLIES 4
tkrupka
Resolver II
Resolver II

I think COUNT can only use one column.

 

Have you tried CALCULATE( COUNT(AAA[xxx]) + COUNT(BBB[yyy]) + COUNT(CCC[zzz]))?

Anonymous
Not applicable

But then how i will be able to Count Status "B" only

That will Calculate All Status A,B,C,D

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
)

Anonymous
Not applicable

Thanks Billion

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.