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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
srahman2015
Regular Visitor

Distinct Count filter column in Filter Panel

Hi,

 

I have a visual in my report which gives me a distinct count of ID against Sales Stages

srahman2015_0-1623915562001.png

In the filter pane, I have the Sales Stage filter but the count on the right shows the count of Sales Stage in the data for all rows

srahman2015_1-1623915612645.png

 

Is there a way of producing a filter (possibly with a calculated column) to do a distinct count on the ID for the Sales stage, so the numbers on the right in the filter match the numbers in the visual??

1 ACCEPTED SOLUTION

@srahman2015 

You cannot change the aggregation on the filter pane but you can change it on the visual. You can use a measure like 

Measure1 - Count(Table[Column])

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
v-angzheng-msft
Community Support
Community Support

Hi, @srahman2015 

 

Unfortunately, calculated tables are created during the data refresh, they are not re-calculated every time a filter changes. So the counts in the filters pane will only ever show the number for the whole data set.

 

For reference:

https://community.powerbi.com/t5/Desktop/How-do-I-filter-a-column-in-a-calculated-table-based-on-ano...

 

 

Hope this helps.

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Fowmy
Super User
Super User

@srahman2015 

Some filters are applied to the table visual that is why you see a lower number perhaps. You click on the filter icon on the visual header and check what filter they are;

Fowmy_0-1623917338652.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi @Fowmy 

 

Thanks for your response!

 

Is there a way of making the numbers the same in the filter pane on the right hand side of the report to match the numbers in the grid?

 

The only difference between the grid and the filter pane is that the grid is doing a distinct count on the ID column whereas the filter pane isn't. I'm thinking possibly a calculated column on the SalesStage with a filter on the ID to be a distinct count but not too sure how this would work.

@srahman2015 

You cannot change the aggregation on the filter pane but you can change it on the visual. You can use a measure like 

Measure1 - Count(Table[Column])

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors