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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Duncan-legend
Regular Visitor

Keep Categories in Table after Filtering

Hi all,

 

In this case, I have a table visual to show the no. of project by categories. However when i apply some filters, the visual become empty. How can I keep the categories in the visual after filtering.

Before Filtering:

Duncanlegend_3-1722219643000.png

 

 

After  Filtering:

Duncanlegend_2-1722219315181.png

Best regard,

Duncan

1 ACCEPTED SOLUTION

Hi @DuncanYeah 
You can create a disconnected table for the slicer 

slicer = DISTINCT('Table'[Type])
Ritaf1983_0-1722236804586.png

and create a measure :

Ritaf1983_1-1722236840601.png

Result:

Ritaf1983_2-1722236869683.png

PBIX is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @Duncan-legend 

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

I make some dummy data for you.


 Test.pbix

OK. Could you please elaborate on the expected results? At present, the table is filtered based on type. Consequently, when 'C' is selected, the visualization is empty due to the absence of any rows classified as type 'C' within the dataset.

Ritaf1983_0-1722228087569.png

This is the typical slicer functionality. What kind of customized slicer behavior are you looking to achieve?

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi,
Thank You. 
I want to keep the categories information even there are no data 

 

Hi @DuncanYeah 
You can create a disconnected table for the slicer 

slicer = DISTINCT('Table'[Type])
Ritaf1983_0-1722236804586.png

and create a measure :

Ritaf1983_1-1722236840601.png

Result:

Ritaf1983_2-1722236869683.png

PBIX is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors