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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lgroger
Advocate I
Advocate I

get count of table when filter pane used

I have a table that is being filtered with the filter pane.  The field used as a filter is a measure which is why it has to be applied to the table itself in the filter pane.  As far as I know, it's not possible to use a measure as a slicer and it won't let me add the meaure as a filter to the entire page.

I would like to show a card with a row count of the table but it's currently not reflecting what's being filtered out by the filter pane.  Any help would be greatly appreciated! 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @lgroger

 

Based on your description, you need to use the first measure as the filter of the second measure to display the results you want. You can try to use the DAX below:

Measure 2 = CALCULATE(COUNTROWS(table),FILTER(table,[Measure1]))

 

Best Regards,

Liang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @lgroger

 

Based on your description, you need to use the first measure as the filter of the second measure to display the results you want. You can try to use the DAX below:

Measure 2 = CALCULATE(COUNTROWS(table),FILTER(table,[Measure1]))

 

Best Regards,

Liang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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