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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jessica_Ballard
Frequent Visitor

Slicers showing data when nothing is selected

I have 2 slicers (one for year and one for region) and i have 2 charts (one showing number of deals per year and one showing number of deals per region). Selecting anything in either slicer filters both charts. However, If you do not click anything in either slicer (nothing is checked) it shows the same charts as it does when everything in both slicers is selected. How can I update my slicers so that nothing is showing in the charts until something is selected in at least one of the slicers. Both slicers are multi select and have the select all option turned on.

3 REPLIES 3
v-chenwuz-msft
Community Support
Community Support

Hi @Jessica_Ballard ,

 

You can use this measure to show no result unless select at least one of the slicers.

Measure =
VAR _R =
CALCULATE( ISFILTERED( 'Table'[Region] ), ALLSELECTED( 'Table'[Region] ) )
VAR _Y =
CALCULATE( ISFILTERED( 'Table'[Year] ), ALLSELECTED( 'Table'[Year] ) )
RETURN
IF( _R || _Y, 1, BLANK() )

 

Then put the measure in filter pane on this visual level and set show items is 1 as the screenshot show.

vchenwuzmsft_0-1645606466142.png

But "all" option  turned on and selected all will be recognized as not selected. Choosing one by one until all is ok

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

Thanks for this. Is there any way to get this to work and still be able to use the select all button? The region section lists over 100 countries and it would be a lot to have to select each one individually.

amitchandak
Super User
Super User

@Jessica_Ballard , On approach, is to create measure that do not have any value unless filtered

 

if(isfiltered(Table[Region]) || isfiltered(Table[Year])  , [Measure] , blank())

 

do this all measures or use this visual level filter

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.