Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

CurrentYear MaxMonth vs LastYear MaxMonth

Hi Community

I have difficulty to get the result that i want. Below is the result table, basically what i want is to show the Last Month sales amount for each year. The last month for 2008-> Dec, 2009->Dec, 2010-> Jun. Attached with the data and qvw. Thanks in advance.

YearCurrentYearLast year
2008136,1360
2009105,083136,136
201086,978105,083
4 Replies
Not applicable
Author

Anyone can help me on this?

kushalthakral
Creator III
Creator III

Hi John

Will try with the data provided with you and revert you back with solution

Regards

Kushal T

kushalthakral
Creator III
Creator III

Hi John

First you convert months in number by using num(month(Date))

and then use the following expression

=sum({<MonthNo={$(=(Max(MonthNo)))}>}Sales)

Not applicable
Author

Hi Kushal

I have tried but it doesn't give me the correct result.