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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
NourJ
Helper III
Helper III

Isfiltered + Or + and for multiple slicer in a measure

Hi all,

 

I am trying to hide a visual until specific slicers/filters to be used,

so after searching, I am doing this by a measure which says if nothing selected then white color, if the filter ... is selected then turn the color transparent, to show what is hidden underneath. (if there is another way please refer it to me)

here is my measure:

Make Transparent = IF(ISFILTERED(Locations[Nahya]),"#FFFFFF00","White")
basically, it works well with one slicer which is after ISFILTERED, but I didn't success to make it active if multiple slicers selected, because I have three specific slicers I want to put them as a condition with AND or OR, so if one of them selected or, all, or only two...
 
 
 
1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @NourJ ,

Can you please share some sample data with expected result for test? It will be help for coding formula.
In addition, you can take a look at following link about all allexcept function to ignore other filters.

Using ALLEXCEPT versus ALL and VALUES

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
Lakshi
Frequent Visitor

Isfiltered + Or + and for multiple slicer in a measure
‎06-20-2019 06:19 AM

Hi all,

 

I am trying to hide a visual until specific slicers/filters to be used,

so after searching, I am doing this by a measure which says if nothing selected then white color, if the filter ... is selected then turn the color transparent, to show what is hidden underneath. (if there is another way please refer it to me)

here is my measure:

Make Transparent = IF(ISFILTERED(Locations[Nahya]),"#FFFFFF00","White")
basically, it works well with one slicer which is after ISFILTERED, but I didn't success to make it active if multiple slicers selected, because I have three specific slicers I want to put them as a condition with AND or OR, so if one of them selected or, all, or only two...

Can anyone help with the formula here? 

Check filtered Industry Sgement = CALCULATE(ISFILTERED('Sector Info'[Industry]))
Hide visual (Industry Segment) = IF([Check filtered Industry Sgement],1,0)
Message (Industry Segment) = IF([Check filtered Industry Sgement],"","Please select an Industry Segment")
Transparency (Industry Segment) = IF([Check filtered Industry Sgement],
"#FFFFFF00",
"white")
Righit now the data is getting filtered using just one filter (Primary Sector) but i want to add "OR" option in this filter so that data is reflected if when we select company or industry. 
v-shex-msft
Community Support
Community Support

Hi @NourJ ,

Can you please share some sample data with expected result for test? It will be help for coding formula.
In addition, you can take a look at following link about all allexcept function to ignore other filters.

Using ALLEXCEPT versus ALL and VALUES

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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