Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I make a request:
answering some cases about comparisons between weeks I was a doubt.
the expression that seemed useful to me to make that kind of comparison was:
sum ({<NumWeek = {'> = $ (= max (NumWeek) -1) <$ (= max (NumWeek))'}>} Sales) for the previous week and,
sum ({<NumWeek = {'> = $ (= max (NumWeek))'}>} Sales) for the current week.
The question is how to solve the cases in which the year changes being compared to week 1 of the new year, with the 52 of the previous year.