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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.