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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis and Multiple Calendarss

(InWeekToDate(D, Today(), 0)*-1 as CalendarCurrWTDFlag)

=

Sum({$<CalendarCurrWTDFlag={1}>} price )

So this basic extraction from my script and expression (in a table) shows you a basic idea of how we are trying to calculate total sales within the current week (month, year, etc).

My only problem is that not until long after having built this set of scripts did I realize that the day of the week begins on Monday instead of Sunday (therefore throwing off all of our calculations.

Is there an easier way to reinject the days of the week as Sunday-Saturday now that all of my work is done?



Labels (1)
1 Solution

Accepted Solutions
fosuzuki
Luminary
Luminary

Hi,

the InWeekToDate function has a 4th parameter - WeekStart - which may serve your need. (i've never used it, but by looking at the Help I think this is what you need...)

Hope this helps you.

Fernando

View solution in original post

1 Reply
fosuzuki
Luminary
Luminary

Hi,

the InWeekToDate function has a 4th parameter - WeekStart - which may serve your need. (i've never used it, but by looking at the Help I think this is what you need...)

Hope this helps you.

Fernando