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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
arsenal1983
Creator
Creator

Dimension Last n days

Hello,

On the barchart I would like to show only last n days from my data (dete dimension).

n is a variable (slider).

I don't want to use set analysis (becaouse there is no possibility to skip to the details data)

I don't want to use x-scrollbar

I would like to set the dimesion length - this should be simple but I'm walking around.

THX

Luke

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Not completely sure about your requirement, but may be something like this:

=If(Num(Date) <= Num(Today() - $(n)), Date)

and then select 'Suppress When Value is Null' option on the dimension tab of the chart properties.

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Not completely sure about your requirement, but may be something like this:

=If(Num(Date) <= Num(Today() - $(n)), Date)

and then select 'Suppress When Value is Null' option on the dimension tab of the chart properties.

arsenal1983
Creator
Creator
Author

I knew it is simple but it is absolutely trivial,

Thanks Sunny.