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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
spividori
Specialist
Specialist

Compare date range

In the attached example, I need to calculate for each day of the dimension five days back and compare them with five days previous to the first 5.

For example, for the day 30/09 day should add 30,29,28,27,26 / 09 and compare them with the days 25,24,23,22,21 / 09.

In the example there are more clarification.

Regards.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this:

=RangeSum(Above(Sum(Imp), 0, 5)) - RangeSum(Above(Sum(Imp), 5, 5))


Capture.PNG

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

May be this:

=RangeSum(Above(Sum(Imp), 0, 5)) - RangeSum(Above(Sum(Imp), 5, 5))


Capture.PNG