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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Please help with the last year values

Hello everyone,

Please help into this, i have one single table, i am getting Last Year values from the same table by using key ( i created the key based on the year and other objects)

Can you please look into the image for the issue.

Untitled.jpg

If you look the value for the 2011 the last year value (2010) is coming properly, but if see 2012 value, the last year value (2011) is not coming properly,


Can any body tell what is the issue.


Thanks in advance

12 Replies
PrashantSangle

Hi,

I will suggest you to do you calculation on front end.

Use Set analysis as Enrique Suggested.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Hello Enrique,

Why two year fields here?

Thanks

PrashantSangle

Hi,

He had given you general Syntax as

Write expression

For Current Year

Sum({<YearField={"$(=Max(YearField))"}>}Sales)

and

For Previous Year

Sum({<YearField={"$(=Max(YearField-1))"}>}Sales)

and Remove Other Field as per Requirement which Enrique try to suggest you.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂