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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Last week vs this week comparison

I have a requirement to draw the last week and this week consumption value based on Monday to Sunday.

My expression for this week is

(sum({<TransactionDate={"=inweek(TransactionDate,today(1),0)"}>}E10)

My expression for last week is

(sum({<TransactionDate={"=inweek(TransactionDate,today(1),-1)"}>}E10)


Can i get some help in  consolidating like instead of what is shown in my screenshot?

--------------------------------------------------------------------

                   This Week              Last Week

Monday             25.23                      24.09

Tues                 32.11                       31.9

1 Solution

Accepted Solutions
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

On dim1, if you try

=WeekDay(TransactionDate)

Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

3 Replies
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

On dim1, if you try

=WeekDay(TransactionDate)

Help users find answers! Don't forget to mark a solution that worked for you!
Anonymous
Not applicable
Author

This can't work because you just change the text representation.

QlikView uses the number behind the text.

You could force it like that:

=text(Date([Transaction Date],'WWW'))

Anonymous
Not applicable
Author

both solutions are working , thanks Robin and Aurelien