Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Year Over Year Comparison ..

Hello Guys, I need Help with calculating Year over Year Sales But I also need the last year's date should be a working day.

For example

Aug 5th 2013 is Monday

Aug 5th 2012 is Sun

So if the same date falls on a weekend then i want the next weekday Aug 6th 2012 selected from the previous year .

1 Reply
tresesco
MVP
MVP

Try like this:

Expression: =Sum({<Date={'$(=Date(Addmonths(Max(Date),-12)+vWeekend))'}>}Sales)

where,

vWeekend=Pick(Match(Num(Weekday(Addmonths(Max(Date),-12))),6,5) ,1,2)

PFA