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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dynamic Expression Label

Hi,

     In my expression label I am trying to create a field name that reflects the specific week number indicated in the expression. My expression is as follows:

SUM({$<Year={$(=Max(Year))},

  Period=,

  Week=,

  [Year Period]=,

  [Year Week]=,

  Date={">=$(=date(date(vCurrentWeekStart)-91))<=$(=date(date(vCurrentWeekStart)-85))"},

  SKU=P(SKU)>} [POS Net Units])

How do I make an expression label that reflects which week the dates specify? I have tried

=Week(  Date={">=$(=date(date(vCurrentWeekStart)-91))<=$(=date(date(vCurrentWeekStart)-85))"}) but I haven't had any luck.

Any help would be great!

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Trying to understand the logic...  Look like this will be the label:

week(vCurrentWeekStart-91)

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Trying to understand the logic...  Look like this will be the label:

week(vCurrentWeekStart-91)

Anonymous
Not applicable
Author

Figured it out! Thanks!