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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Week to Date

Example of an expression that will sum values week to date?  I have tried a few expressions, but they do not sum correct date frame or error appears.  Any help is appreciated.  Thanks in advance.

2 Replies
hectorgarcia
Partner - Creator III
Partner - Creator III

justinphamvn
Creator II
Creator II

Hi,

You should using Set Analysis

Try like this:

sum(

          {

              <

                date=,

                Year=,

                Month=,

                Quarter=,

                    date={">=$(=WeekStart(Max(date)))<=$(=Max(date))"}

              >

          }

Sales)

Hope this helps,

Justin.