Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.