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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Nazdac911
Helper II
Helper II

The relationship between slicer status and visual filtering

Hi all 

I am using a simple measue to detect whether a slicer colum is filteres or not : 

_is_product_filtered =
CALCULATE(
    IF(
        ISFILTERED(Dim_product[product_name]) , 1 , 0) ,
        ALLSELECTED(Dim_product[product_name])
)
or 
INT(
    NOT (ISBLANK(SELECTEDVALUE(Dim_product[product_name]) ))
 
And then I am applying this filter on my visual , I notice that it work great with some visuals but its not working with others (just like labels ) 
Nazdac911_0-1670503332727.png

and also why I cant apply one filter to the whole page ? 

Is their is a rule for that ? 
Thanks in advance 
regards 
2 REPLIES 2
amitchandak
Super User
Super User

@Nazdac911 , allselected should always work

 

_is_product_filtered =
int(CALCULATE(
ISFILTERED(Dim_product[product_name]) ,
ALLSELECTED(Dim_product[product_name])
))

Hi Mitchendak 
thank you for the new script , but this also cant apply to label visual ?

regards 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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