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

Sum of Sales for Year to Date, Quarter to Date, Month to Date

What are the expressions for the Sum of Sales of

Year to Date

Quarter to Date

and Month to date?

1 Reply
v_iyyappan
Specialist
Specialist

Hi ,

     Use this expressoin

     Year to Date = Sum({<Datefield={'>=$(=(Num(YearStart(Max(Datefield)))))<=$(=(Num(Datefield)))'}>}Sales)

     Quarter to Date = Sum({<Datefield={'>=$(=(Num(QuartStart(Max(Datefield)))))<=$(=(Num(Datefield)))'}>}Sales)

     Month to date = Sum({<Datefield={'>=$(=(Num(MonthStart(Max(Datefield)))))<=$(=(Num(Datefield)))'}>}Sales)

Regards,

Iyyappan