Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
jerryr125
Creator III
Creator III

displaying a chart/kpi if a filter is selected

Hi - 

Is there a way to NOT display a chart or KPI unless a date is selected in the filter criteria ?

Therefore, IF GetFieldSelections (DATE) is null, can you somehow not display a specific chart??

 

Thanks - Jerry

1 Solution

Accepted Solutions
jerryr125
Creator III
Creator III
Author

if( IsNull(GetFieldSelections(DATE)), 0, AMOUNT)

 

this did the trick ! Thanks  - Jerry

View solution in original post

6 Replies
dplr-rn
Partner - Master III
Partner - Master III

Which version of sense are you on. Latest versions comes with dashboard bundle which has a extension called show hide container . That should suit your need.
its available outside the bundle below
https://developer.qlik.com/garden/583764c83dc0cfc4138afa26
jerryr125
Creator III
Creator III
Author

Hi - thanks for your response.  That feature only lets me select certain visualizations though.

Any other thoughts ? Jerry

jerryr125
Creator III
Creator III
Author

I tried this - no luck:

 

IF (GetFieldSeleactions (DATE) isnull(), 0, AMOUNT)

 

thoughts ? Jerry

dplr-rn
Partner - Master III
Partner - Master III

not sure about the restrictions. but
try if(GetSelectedCount(Date)=0, 0, AMOUNT)
jerryr125
Creator III
Creator III
Author

if( IsNull(GetFieldSelections(DATE)), 0, AMOUNT)

 

this did the trick ! Thanks  - Jerry

shelliM
Contributor
Contributor

I was able to make this work in my App, but some of the months (that have data available) still show a 0, any thoughts on that?

if( IsNull(GetFieldSelections(DATE)), 0, AMOUNT)