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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
MVP
MVP

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

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Quy_Nguyen
Specialist
Specialist
Author

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