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

Creating a line chart that is partly independent from time selection

Hi all,

Im experiencing a  problem for which i dont have a solution. Im trying to make a graph that show the past 10 weeks of data when selecting a week. So if i select week 15 the chart should show week 6-15.

A basic exmapl to work with is in the attchement.

Any help will be greatly appriciated!

gr,

Aart

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try expression:

=sum({<Week={">$(=Max(Week)-10) <=$(=Max(Week))"}>}Number)

View solution in original post

2 Replies
tresesco
MVP
MVP

Try expression:

=sum({<Week={">$(=Max(Week)-10) <=$(=Max(Week))"}>}Number)

Not applicable
Author

Works like a charm! I really should read up on set analysis i realize now

Thnks for the fast response