cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
lgroger Regular Visitor
Regular Visitor

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

Accepted Solutions
Microsoft V-lianl-msft
Microsoft

Re: get count of table when filter pane used

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
Microsoft V-lianl-msft
Microsoft

Re: get count of table when filter pane used

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

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors
Top Kudoed Authors