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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Show Blank Data when Nothing is filtered

Hi, 

 

I have multip;e slicers on a page with multiple visuals (tables, charts, etc). I want the visuals to show blank when nothing is selected. How do I do this successfully?

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could use the following formula to create a new measure :

Measure =
CALCULATE (
    IF ( ISFILTERED ( 'Table'[Country] ) || ISFILTERED ( 'Table'[City] ), 1, 0 ),
    ALLSELECTED ( 'Table' )
)


And apply it to filter pane (set as "is 1") as shown below:

1.25.1.1.gif

 

Please check the pbix file here.

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could use the following formula to create a new measure :

Measure =
CALCULATE (
    IF ( ISFILTERED ( 'Table'[Country] ) || ISFILTERED ( 'Table'[City] ), 1, 0 ),
    ALLSELECTED ( 'Table' )
)


And apply it to filter pane (set as "is 1") as shown below:

1.25.1.1.gif

 

Please check the pbix file here.

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

compare FILTERS() to VALUES()

lbendlin
Super User
Super User

Create a measure in lieu of your value column and set the measure to the value only when the number of slicer filters is different from the number of slicer values.

Beware! "Nothing is selected"  and "Everything is selected"  are treated the same by DAX.

Anonymous
Not applicable

What dax function would you use in the measure to make this successful?

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.