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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
girard_ben
Creator
Creator

Daily Like for Like in a single table ?

Dear all,

I have a straight table with a like for like Analysis!! This works well but I need to select one day to achieve the computation.

> this is great for a daily report !

But now I need to create a monthly daily analysis where all days must be displayed...

Date Like for LikeDateQuantity Previous YearQuantity
03/01/201502/01/2016
04/01/201503/01/2016
....

but I my set analysis is not working well!!! => I have extra rows...

2016-05-24_14h51_44.png

that I want

Result.png

In my model I have a dedicated field in the "Master Calendar" to find the N-1 Date , it's Date_LFL.

The formula for the "Quantity LY" Measure

=SUM( {<Date={'$(=Date(max(Date_LFL),'DD/MM/YYYY'))'},Year=,Month=,Day>}Quantity*LFL_TY)

thanks in advance for you help.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe using a DateLink table?

View solution in original post

2 Replies
swuehl
MVP
MVP

Maybe using a DateLink table?

girard_ben
Creator
Creator
Author

Hi Swuehl,

you've right... I was just looking for this type of Calendar Table...

I'll add it very quickly 😉

Thanks a lot four you quick reply