cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Frequent Visitor

## Count rows of a filtered table

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

 Manager Client Name Value John a \$        5,300 John b \$        5,200 David c \$        6,500 David d \$        6,200 David e \$        5,800 Colin f \$        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.

1 ACCEPTED SOLUTION
Post Patron
Count1 = CALCULATE(COUNTROWS('Table'), 'Table'[Column3] >= 5000)
2 REPLIES 2
Super User

Hi,

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.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Post Patron
Count1 = CALCULATE(COUNTROWS('Table'), 'Table'[Column3] >= 5000)

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors