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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
kivancc94
Helper I
Helper I

Table Filtering issue

Hi,

I would be happy if you could help me. 

I have one filter and one table visuals. Even if i did not selected anything from slicer, it is still showing 1 in table because as you know in table it is already filtered. How can i solve that ?

It should only show 1 when i selected value from slicer. Otherwise it must show 0 in table. 


kivancc94_0-1677218303053.png

 

2 REPLIES 2
johnyip
Solution Sage
Solution Sage

Hi @kivancc94 , ISFILTERED() doesn't work in that way.

 

Do you want to show 1 for all records when you are not selecting all items in the slicer? If so, please try the following:

 

highlight w slicer = 
VAR Len_Country = PATHLENGTH(CONCATENATEX(DISTINCT(ALL('Table'[Country])),[Country],"|"))
VAR Len_SelectedCountry = PATHLENGTH(CONCATENATEX(DISTINCT(ALLSELECTED('Table'[Country])),[Country],"|"))
RETURN IF(Len_Country=Len_SelectedCountry,0,1)

 

johnyip_1-1677231093658.png



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!
sevenhills
Super User
Super User

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.