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: 
Not applicable

Subset of values in Chart Dimensions (Filter Chart dimensions)

Hi,

I have a chart that has 3 dimensions. One dimension has to dynamically display values for the next 21 days based on today's date. Today's date is stored in a variable.

Can someone guide me as to how to filter the Time field values (displayed as dimension in charts) based on a variable value?

Sai

1 Reply
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

You can replace your Dimension with the calculated Dimension and use IF condition to limit your dates:


if( date <= $(vToday) + 21 and date >= $(vToday), MyDimension, null())


notice that vToday is the variable. You also need to check "Suppress when null" checkbox.

good luck,

Oleg