Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
AlexWest
Creator
Creator

Filter empty value

Hi colleagues, 

Please help with Filter codes.
I need to do a filter pane check:
If Filter is not chosen, show sum on Key pane.
I mean, I have filter with dates (years and days). 

And I have a Key pane with Clients sum.
And i can't make that if filter is not chosen, Key pane must show “-” symbol, or something like “chose a period”. 

Please help to realize the code.
Thanks a lot 🙂

Labels (2)
15 Replies
Bunim
Contributor III
Contributor III

Add-ons -> Calculation condition

AlexWest
Creator
Creator
Author

Sorry, what? 😅
Could you please explain a little in details? 

I'm a newbie in this system 😅😅

Bunim
Contributor III
Contributor III

Bunim_0-1656339568444.png

in Calculation condition write

if(GetSelectedCount(dates )>0,1,0)

AlexWest
Creator
Creator
Author

Wow, man! Thanks a lot! Tomorrow will try and come back with feedback)

AlexWest
Creator
Creator
Author

Hi!

Unfortunately, this way didn't help(

I wrote in Add-Ons - if(GetSelectedCount(Account_creation_date)>0,'y','n') 

But nothing happened(

I'll attach the picture how do I have it.

1.PNG

2.PNG

3.PNG

  

Rajashekar
Contributor III
Contributor III

hi @AlexWest 

write 1 and 0 instead of Y and N.

 if(GetSelectedCount(Account_creation_date)>0,1,0) 

1 -show

0 - hide.

you can write default text when metric is hidden. 

Rajashekar_0-1656566051073.png

 

AlexWest
Creator
Creator
Author

Hi @Rajashekar 

Yeah, your advice is working, but it works as by default): if I select 21y - the pane shows one argument, if 22y - another one arg. And if nothing's selected - the pane shows all the SUM.

But I need to hide any text if filter is not selected.

 

 

 

Bunim
Contributor III
Contributor III

Hi @AlexWest 

The SUM put in Data filed expression not in Data handling.

in Data handling Displayed message write "Please select Account Creation_date".

Cheers,

AlexWest
Creator
Creator
Author

I made exactly like you advised, but now Displayed message is showing all the time.

Then I tried to remove Displayed message, and now the pane's showing message "The calculcation condition is not fullfilled", whatever I'd select.

1.PNG