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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
joe1255
New Member

Calculate(Countrows) with Filter ignoring row context?

Hi All, this works in Excel and I can't for the life of me figure out why it's not working in BI, all of the googling I've done leads me to believe the syntax is correct, but instead of returning the count by row context, it's returning the total row count for the table (with the filter criteria) for each row in my matrix...?

 

My Measure... 

Complete Count = CALCULATE(COUNTROWS('All Workflows'),FILTER('All Workflows','All Workflows'[Status]="Complete"))

 

My Results...

joe1255_0-1718742798288.png

 

There are 2872 completed records in my source table, but why is it ignoring the row context of my matrix? all of my other measures seem to be working as expected...?

 

Thanks,

Joe

 

1 ACCEPTED SOLUTION
joe1255
New Member

Never mind, figured it out, relationship between tables wasn't set right.

View solution in original post

2 REPLIES 2
joe1255
New Member

Never mind, figured it out, relationship between tables wasn't set right.

Anonymous
Not applicable

Hi @joe1255 ,

Glad to hear you have resolved the problem.

Best Regards,

Ada Wang

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.