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

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

Year and Month value Calculation

Hi,

I am trying to compare values from this year this month and last year this month in pivot table.

For this year column I am using:

sum({<Invoice_Date.Year = {$(=GetFieldSelections(Invoice_Date.Year))}, Invoice_Date.Month = {$(=GetFieldSelections(Invoice_Date.Month))}>} [sop.val])

and for last year this month column i am using

sum({<Invoice_Date.Year = {$(=GetFieldSelections(Invoice_Date.Year)-1)}, Invoice_Date.Month = {$(=GetFieldSelections(Invoice_Date.Month))}>} [sop.val])

however the values showing are all zeros.

Any help will be greatly appreciated



1 Solution

Accepted Solutions
Not applicable
Author

Hello again,

I have modified the application in the way you asked.

Hope it helps a lot!

Rainer

View solution in original post

5 Replies
Not applicable
Author

Hi,

try to evaluate the example.

Good luck!

Rainer

Not applicable
Author

Thanks Rainer,

It shows the aggregate for last three month. Is there any way to identify figures for last year this month.

Not applicable
Author

Hello again,

I have modified the application in the way you asked.

Hope it helps a lot!

Rainer

Not applicable
Author

Here are the attachment.

Not applicable
Author

Many Thanks. It worked.