cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
heytherejem
Post Prodigy
Post Prodigy

Creating transparent card with message if data is not filtered - using TWO filters

Hi there

 

I have a transparent card with a message working perfectly, to hide a visual if a filter has NOT been applied. The message says "you must first select a filter to view results"

This is only working on one slicer, and I have two. One is Dim_Name and the other is Dim_Plan

 

Here are my two measures:

Check Filtered = IF(ISFILTERED(Dim_Name[Name]),1,BLANK())

Transparent = IF(NOT(ISBLANK([Check Filtered])),"#FFFFFF00")

 

So with the above, measure if Dim_Plan is filtered, the card remains in place with the message because there is no reference to Dim_Plan in the 'Check Filtered' measure. I tried the following but it doesn't work:

Check Filtered = IF(ISFILTERED(Dim_Name[Name]),1,BLANK())||IF(ISFILTERED(Dim_Plan[Plan]),1,BLANK())

 

Can I ask Power BI to check two filters?

1 ACCEPTED SOLUTION
PaulDBrown
Super User
Super User

Try:
Transparent = IF(OR(ISFILTERED(Dim_Name[Name]), ISFILTERED(Dim_Plan[Plan])),"#FFFFFF00")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
PaulDBrown
Super User
Super User

Try:
Transparent = IF(OR(ISFILTERED(Dim_Name[Name]), ISFILTERED(Dim_Plan[Plan])),"#FFFFFF00")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

Works and I no longer need the filter check measure 😄

amitchandak
Super User
Super User

@heytherejem , You can also check for dim plan

example

Transparent = IF(ISFILTERED(Dim_Name[Name]) || ISFILTERED(Dim_plan[Name]) ,"#FFFFFF00")

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors