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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to calculate COUNTA like in Excel for a Visual Table with a field which is a Measure

How calculate COUNTA like in Excel of a Visual Table when my fields are mixed between Tables and Measures?

 

Below I have a Matrix Visual which is built with a Sin Table, a Year Table and a Measure which is the variance between two other tables. I apply a filter so that the table does not show me any zero amounts. How to obatin a COUNTA of my SIM Column? My count should result in 9.

 

Capture.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Instead of using a measure, I simply added another SIN Column as a Distinct Count and it gave me my SIN Total.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Instead of using a measure, I simply added another SIN Column as a Distinct Count and it gave me my SIN Total.

Anonymous
Not applicable

Hi @Anonymous 

Use

CALCULATE(COUNT('table'[SIN Table'),'table'[measure variance amount] <> 0)

Anonymous
Not applicable

Hello This is not working 

Variance SIN Count = CALCULATE(COUNT('Table SIN Revised with Manual Adj'[SIN]),'Measures YE Reconciliation'[Variance Prod File - Rev CSLS] <> 0)

I get this error messsage: A function 'CALCULATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors
Top Kudoed Authors