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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Calculate Distinct Count of Rows in Table Visual with Filters

Hello everyone,

 

I am stucked in workarounds.... now want hear some expertise from community members for a proper solution.

 

So I have a `Table View`, and users want to see how many rows are there based on selection of filters.

hsy_0-1620944765034.png

Since Table view does not calculate distinct count of rows, so I made a `Card View` and passed `Count Distinct ()` in it, which solved the problem in the day.

 

And now a new requirement comes up. People want to filter a measure. I add the measure at the sidebar.

hsy_1-1620945026286.png

Which cause a problem as, my standalone card is not filtered by the filter on sidebar.

 

Hope I stated clearly, anybody be cumbered in the same place before?

 

Best regards 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

If you put the measure as a filter on the table visual, you can also put it as a filter on the card visual. Or if you hope this filter to take effect on the whole page, you can also put this measure in Filters on this page so that it can filter all visuals on the page.

 

Another option is to add the filter to your DAX codes for the measure so that it is possible to influence the measure directly. If you want to realize that in this way, can you share some dummy data and expected result in table format or other copiable format thus we can help modify the measure?

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

If you put the measure as a filter on the table visual, you can also put it as a filter on the card visual. Or if you hope this filter to take effect on the whole page, you can also put this measure in Filters on this page so that it can filter all visuals on the page.

 

Another option is to add the filter to your DAX codes for the measure so that it is possible to influence the measure directly. If you want to realize that in this way, can you share some dummy data and expected result in table format or other copiable format thus we can help modify the measure?

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Ashish_Mathur
Super User
Super User

Your question is not clear.  Please offer a detailed/better explanation.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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