Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to write expression for Last Year _Month wise_Date (YTD) sales?

Hi All,

My Curr year sales exp:

=Sum({<CurrencyFlag = {'DateWiseCurrency'} ,KPIsFlag={'SalesCost'},ACT_BKG_FLAG={'BKG'}>}BookingSales/Currency_Rate)/vValue

Last year Sales Exp:

=Sum({<CurrencyFlag = {'DateWiseCurrency'} ,KPIsFlag={'SalesCost'},ACT_BKG_FLAG={'BKG'},CommonYear={'$(vPSY)'}, Day={">=Max(Day)<=(day(Today()))"}>}

BookingSales/Currency_Rate)/vValue

Variable: vPSY=max(Year)-1

I want last year till date sales for all months compare with this year till date sales all months, The completed months never change the sales values, please find the attachment.

0 Replies