Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I've got a table like this:
Using this article https://community.qlik.com/t5/New-to-Qlik-Sense/Last-7-Days-values/td-p/1519017 I've obtained last 7 days of the dataset. For comparisons I'd like to get 7 entries before that time period, e.g. previous week.
Last 7 days (most recent week) I calculated using:=If(Date>$(MaxDayMinus7),Date(Date,'dd-MMM-YYYY')&chr(13)&Date,NULL())
and variable MaxDayMinus7:=Max(Num(Date))-7
Can I fetch 7 entries before the last ones using similar approach?
Many thanks!
Hi @Didi420
if I got you,try to used with Peek() and Previous() functionshere you have more details - Peek() vs Previous() – When to Use Each - Qlik Community - 1475913