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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
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

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try expression:

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

View solution in original post

2 Replies
tresB
Champion III
Champion III

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