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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Frequent Visitor

Count rows of a filtered table

I have a filtered table which looks like this (filtered on value > $5000):


ManagerClient NameValue
Johna $        5,300
Johnb $        5,200
Davidc $        6,500
Davidd $        6,200
Davide $        5,800
Colinf $        7,000


I want a CARD value to show 6 in this example which is the count of the rows.


I have tried adding a MEASURE using COUNTROWS, but not really sure how to add it correctly to factor in the filter if necessessary.


And to complicate it, the "Value" which the table is filtered on is from a different Data table to "Manager" and "Client". I am not sure if this will impact the solution. 


Any help appreciated.

Post Patron
Post Patron

Count1 = CALCULATE(COUNTROWS('Table'), 'Table'[Column3] >= 5000)

View solution in original post

Super User
Super User


Assuming Value is a measure that you have already written, write this measure

Measure = countrows(filter(generate(values(managers[manager]),values(clients[client]))),[Value]>5000)

Hope this helps.

Ashish Mathur
Post Patron
Post Patron

Count1 = CALCULATE(COUNTROWS('Table'), 'Table'[Column3] >= 5000)

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.