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
CSpina
Helper III
Helper III

Show/ Hide visuals not working

Hi Guys.

I am creating a report where I have to hide KJPI if have no filter.

 

I created a measure:

 

 

 

Mostrar = CALCULATE(if(ISFILTERED('dMunicípios'[Nome_Município]),1,0), ALLSELECTED('dMunicípios'))

 

 

 

Which gives me 1 when I have a city (Municipio) selected.

 

Tela 1.png

 But, when I clear all selections, Mostrar =0, the KPIS show a list os cities.Tela 2.png

Any clues?

 

Thanks in advance.

 

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @CSpina ,

 

You want to hide the card viusal when the measure return 0, am i right? Unfortunately, there is no such a feature to hide/show visiualization in a dynamic way. I suggest you create an idea for it in  https://ideas.powerbi.com/forums/265200-power-bi-ideas to improve the power bi.

 

Best Regards,

Dedmon Dai

 

lbendlin
Super User
Super User

Define "Hide the KPI"  - Do you want to not show the KPI visual at all, do you want to show something else in its place, or something different?

s for your awnser.

Hide means show no data or just blank.

I want to show results when I have just one city selected.

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.

Top Solution Authors
Top Kudoed Authors