Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

i want sum of sales for MOM and QOQ pls tell me how to write using setanalysis

i want sum of sales for  MOM  and  QOQ pls tell me how to write using setanalysis

1 Reply
Anonymous
Not applicable
Author

Month over Month:

sum({$<Year=,Quarter=,Month=>} if(InMonthToDate(Date,today(),0),Sales))

/

sum({$<Year=,Quarter=,Month=>} if(InMonthToDate(Date,today(),-1), Sales))

Quarter over Quarter is the same, only use InQuarterToDate() instead of InMonthToDate