Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm using Qlik Sense November 2024.
I load data from excel sheets, that look the following:
...
After loading I want to add a column where the sum of visitors of the last 14 days per location is shown:
...
What formula do I have to use?
Thanks in advance!
use below expression.
rangesum(above(aggr(Sum(NumberOfVisitors),Date),0,14))
Hi Padma,
thanks for your quick reply!
I can't use this expression in data editor. I need to have a solution for my Qlik Sense script.
Hi,
since I had to find a solution now, I did the following:
VisitorMap:
Mapping
Load Date & '-' Location as Key, NumberOfVisitors
from visitors (qvd);
visitors:
noconcatenate
load Date, Location, NumberOfVisitors,
ApplyMap('VisitorMap',Date-1 & '-' Location) + ApplyMap('VisitorMap',Date-2 & '-' Location) + ...
from visitors (qvd);
Any comments or critics for this solution? 😉