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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

mtd calculation by using week range

hi folks,

how  can i calculate month to date in pivot table.

by using 1st week total,2nd week total,3rd week total

means add the data of week range to get sum of 30 days

plz find the attached excel(sample target)

1 Solution

Accepted Solutions
v_iyyappan
Specialist
Specialist

hi,

Use the Dimension Month in Chart.

=SUM({<

     Year=,    

     Month=,    

     DateFieldNum=

     {'>=$(=(num(WeekStart(DateField))))<=$(=(num(WeekEnd(DateField))))'}>}Sales)

    

     Where

     DateFieldNum= Num(DateField)

Regards,

Iyyappan

View solution in original post

1 Reply
v_iyyappan
Specialist
Specialist

hi,

Use the Dimension Month in Chart.

=SUM({<

     Year=,    

     Month=,    

     DateFieldNum=

     {'>=$(=(num(WeekStart(DateField))))<=$(=(num(WeekEnd(DateField))))'}>}Sales)

    

     Where

     DateFieldNum= Num(DateField)

Regards,

Iyyappan