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
SarahHope
Helper II
Helper II

COUNTROWS always returns the value 1

I am trying to count the rows in my table1 for which columnY contains the words "Ready for CAB"

The formula returns the number '1'.

RFC Count = CALCULATE(COUNTROWS('Table1'),FILTER('Table1','Table1'[ColumnY]="Ready for CAB"))

so I simplified and tried this below and it still returns "1".

totalrows = COUNTROWS('Table_owssvr')
 
I happen to know that it should be returning "8" today as I have that number from another report.
 
What am I doing wrong?
Thanks so much.
1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @SarahHope 

 

Have you got any filters on the Page or on All pages?

 

The RFC Count as you've written it should return 8 if ther's no filters and [ColumnY] def contains that text.

 

Can you post your table?

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
SarahHope
Helper II
Helper II

I got this to work in my original report.  I have another report that is using the first report as a source.  I could not get this to work on that second report - only in the original.  It's a work around, but it will do for now.  Thank you.

PhilipTreacy
Super User
Super User

Hi @SarahHope 

 

Have you got any filters on the Page or on All pages?

 

The RFC Count as you've written it should return 8 if ther's no filters and [ColumnY] def contains that text.

 

Can you post your table?

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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