Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Quy_Nguyen
Specialist
Specialist

Sales comparison vs last year

Hello,

I have the data sample and expected result like this:

1.PNG

I used:

If(Flag_This_Year = 1, Date) for the dimension,

Sum({<Date ={"$(=AddYears(Max(Date),-1))"}>}Sales) for measure sale last year, but got wrong result.

I know that it can be done with join function in data load script, I am looking for a solution on dashboard.

Any help would be greatly appreciated.

14 Replies
Neymar_Jr
Creator II
Creator II

Hi,

Please see if this helps.

Thanks,

RT

Quy_Nguyen
Specialist
Specialist
Author

Thank you so much for the solution. It's very nice to create the dimension that way.

Quy_Nguyen
Specialist
Specialist
Author

Rajesh made it happen

agigliotti
Partner - Champion
Partner - Champion

I saw it, it's by Month Year and not by Date as you requested above.

Quy_Nguyen
Specialist
Specialist
Author

Have a look at the reply that i marked correct. It's exactly what i want.