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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
reporting_neu
Creator III
Creator III

Week X of Datefield

Hello everybody,

I need the sum of something from a given week. Unfortunately I can't do the calculation.

 

SUM({< WEEK(datefield) = {19}>}value)

 

How can I get the sum of week 19 for example?
Or even better, how do I get the next week's value dynamically?

Like:

SUM({< WEEK(datefield) = {Week(today)+1}>}value)

 

Can you help me please?

1 Reply
tresB
Champion III
Champion III

Create a week field in the script, and try like:

SUM({< WEEKField = {'$(=Week(today())+1)'}>}value)

Or, with date field try like:

SUM({< datefield = {"=Week(datefield)=Week(today())+1"}>}value)