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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
siddrow
Helper III
Helper III

How do I show no data in gauge until slicer is selected

Hi all

 

What measure do I need to create to show no data in my gauge visual until I select something from my slicer? I have % in my value and % in my target value and in my slicer I can select the area (department). When I have not selected anything in the slicer, it's just combining all the data from all areas and I do not want this. I don't want to hide the visual all together.

 

thanks in advance

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

Hi, @siddrow ;

Here is a simple data to show it, You could create another table as slicer and without relationship.

1.create a slicer table.

Slicer = VALUES('Table'[department])

2.then create a measure.

flag1 = IF(ISFILTERED('Slicer'[department]),1)

Then apply it into filter.

vyalanwumsft_0-1647844023546.png

 

3.Or create a measure.

flag2 = 
IF(ISFILTERED('Slicer'[department]),
   CALCULATE(SUM([VALUE]),FILTER('Table',[department] in ALLSELECTED(Slicer[department]))))

The final output is shown below:

vyalanwumsft_1-1647844041779.png   vyalanwumsft_2-1647844051230.png


Best Regards,
Community Support Team _ Yalan Wu
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

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @siddrow ;

Here is a simple data to show it, You could create another table as slicer and without relationship.

1.create a slicer table.

Slicer = VALUES('Table'[department])

2.then create a measure.

flag1 = IF(ISFILTERED('Slicer'[department]),1)

Then apply it into filter.

vyalanwumsft_0-1647844023546.png

 

3.Or create a measure.

flag2 = 
IF(ISFILTERED('Slicer'[department]),
   CALCULATE(SUM([VALUE]),FILTER('Table',[department] in ALLSELECTED(Slicer[department]))))

The final output is shown below:

vyalanwumsft_1-1647844041779.png   vyalanwumsft_2-1647844051230.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@siddrow , You can create a measure with help from isfiltered . If needed use hasonevalue too

 

if(isfiltered(Table[Department]), [Measure], blank())

 

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

Hey!

 

Thanks for your response. Sorry I am VERY new to measures. When you say [Measure] do I put in the name of the measure I am creating? E.g. I am calling the measure Gauge, so would it look like this?: if(isfiltered(Table[Department]), [Gauge], blank())

 

What will the measure look like if add in hasonevalue too?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors