Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
stephenedberkg
Creator III
Creator III

YTD

MTD

=Sum({<Years={$(=Max(Years))},MonthIDS= {$(=Max(MonthIDS))}, Month=,Year=>} Aggr(If(Only({1}MonthID) = Max(TOTAL <SKU> MonthID) + Only(TOTAL <SKU> OrderLockPeriod),

Sum({<Years={$(=Max(Years))},MonthIDS= {$(=Max(MonthIDS))}, Month,Year=>}Arrivals)), SKU, MonthID))

how to write this MTD expression into YTD?

i want to change the bold font month id into YTD format?

2 Replies
Chanty4u
MVP
MVP

stephenedberkg
Creator III
Creator III
Author

=Sum({<Years={$(=Max(Years))},MonthIDS= {$(=Max(MonthIDS))}, Month=,Year=>} Aggr(If(Only({1}MonthID) = Max(TOTAL <SKU> MonthID) + Only(TOTAL <SKU> OrderLockPeriod),

Sum({<Years={$(=Max(Years))},MonthIDS= {$(=Max(MonthIDS))}, Month,Year=>}Arrivals)), SKU, MonthID))

change this expression into YTD?

i attach the sample