cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tushar_Pasricha
New Member

Change a card value to Blank when filter is selected

Hi All,

 

I am trying to change a card value on dashboard to turn Blank when I select a particular filter.

 

Case : All values are Selected in a Type of booking filter ( Default)

Tushar_Pasricha_0-1669878694206.png

A card value (Target) is shown on my dashboard

Tushar_Pasricha_1-1669878773241.png

 

Task: When a user selects Offline, The target value should show as blank

 

We have used If condition to turn this to blank but that is not working, could anyone please help in resolving this

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Tushar_Pasricha , use isfiltered

 

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

 

or

= var _is = calculate(isfiltered(Table[Column]), allselected())

return

if(_is , [Measure], blank())

 

HasOneValue , Isfiltered: https://www.youtube.com/watch?v=hXg3kRFSGjA&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=38

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Tushar_Pasricha , use isfiltered

 

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

 

or

= var _is = calculate(isfiltered(Table[Column]), allselected())

return

if(_is , [Measure], blank())

 

HasOneValue , Isfiltered: https://www.youtube.com/watch?v=hXg3kRFSGjA&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=38

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors