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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Prior YTD figure expression trouble

Hi guys,

I'm trying to create an expresion in which we look at the previous years YTD figure?

My attempt was: [Code] sum({<Master_Calendar_Month_Key={">=$(=yearstart(Master_Calendar_Month_Key)) <=$(=Master_Calendar_Month_Key)"},
Master_Calendar_MonthYear = {"$(=date(AddMonths(Master_Calendar_MonthYear,-12), 'MMM-YYYY'))"}>}Count) but this didn't provide the correct details.

I also tried:

 sum({1<Master_Calendar_Month_Key={">=$(=yearstart(Master_Calendar_Month_Key)) <=$(=Master_Calendar_Month_Key)"},
Master_Calendar_MonthYear = {"$(=date(AddMonths(Master_Calendar_MonthYear,-12), 'MMM-YYYY'))"}>}Count)

but this again did not give me the right result. Does anyone have any other suggestions, they would be most welcome.

Thanks,

Labels (1)
0 Replies