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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
cocobello3
Contributor II
Contributor II

Conditional dimension filter

Hi all,

I would like to have a dynamic filter for my dashboard on the period.

Capture.JPG

If the current scenario (year) is selected the period filter should only display monthes until current month.

For example, if we select scenario 2020 period filter should display from January to June.

I was thinking of formula like this (but not working) :

=if(left(GetFieldSelections(SCENARIO),4) = year(today()) and left(PERIOD,2) <= month(today()), PERIOD, all(PERIOD))

Thanks in advance for your help !

 

2 Replies
sunny_talwar

Are SCENARIO and PERIOD not connected to each other in the script?

cocobello3
Contributor II
Contributor II
Author

Hi,

To illustrate in a simplified way, it is like this :

DB.JPG

Thanks !