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
Anonymous
Not applicable

Display a message instead of matrix when no slicer value is selected

I have a set of Slicers and a matrix chart .

 

My requirement is to display the matrix chart only if any of the Slicer value is selected otherwise it should display a message as "Please select any filters".

 

Thanks for your help in advance !

1 ACCEPTED SOLUTION

Well, you are in luck.  I have had this idea in my head for a while but never worked it out.  I decided to get it done.  You can read about how to hide visuals in Power BI by reading my article.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

7 REPLIES 7

Create a measure, add it to a card, set the background to transparent, place the card over your matrix. 

 

The measure needs to display a result if nothing is selected in the slicers. Something like. 

 

Message = if(not(isfiltered(table[column])),”warning, select something”)




* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Hi @MattAllington ,

 

What if the slicer value is based on a measure? How do I write the formula for that?

 

I can't insert my measure in the "ISFILTERED" function.

 

Thanks

afk

Anonymous
Not applicable

thanks for the approach! I implemented it, it displayed a warning message when there was no selection. but when a slicer value is selected, the card is displaying the message as (Blank) instead of displaying the visual which is behind the card.

Sorry, I forgot about that. Just place a null thing as the alternate result, eg “”



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Anonymous
Not applicable

I implemented it, but it didnt work as expected.
Please find the below eg for your reference
Formula -
Card = if(not(HASONEVALUE(Sheet1[Level 1]))||not(HASONEVALUE(Sheet1[Level 2]))||not(HASONEVALUE(Sheet1[Level 3])),"Please Select any Filter","")

Before Selection
 
Card.PNG
 
Post Selection :
 
card2.PNG
 
If i make the card as trasparent, then the text behind the card is shown - This is not my requirement.
Card 3.PNG
 
Thanks for your help in advance!
Dhivya

Well, you are in luck.  I have had this idea in my head for a while but never worked it out.  I decided to get it done.  You can read about how to hide visuals in Power BI by reading my article.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Anonymous
Not applicable

Thank you! The approach worked fine!

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.