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
astano05
Helper III
Helper III

Count occurrences in table visual

I'm looking to count the number of occurences in a table. I have 2 table visuals filtered for over Standard Devition of X and under X. 

 

I want to count the number of occurences, but using calculate(count([NAME]),[Standard Deviation]>X) i get the following error:

A function 'CALCULATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.

 

Is it possible to fix this, or is there a way to get the count of a non-numerical field in the Total section of a table visual.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@astano05 , you have try like this

calculate(count([NAME]),filter(Table,[Standard Deviation]>X))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@astano05 , you have try like this

calculate(count([NAME]),filter(Table,[Standard Deviation]>X))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  Thanks for responding! I tried that and got this error: A circular dependency was detected: Data Block[Column]. (Data Block is the name of the table). 

 

I'm not sure what the circular dependancy would be. The standard deviation measure does not use the name column.

Anonymous
Not applicable

Hi @astano05

 

What's in your measure of standard deviation?Try below meausre :

countx(filter(Table,[Standard Deviation]>X),[NAME])

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

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