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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

2 week selection in Calendar

I've added following line into the Calender:

week(PeriodDate) -1) & '-' & week(PeriodDate)                                          AS TwoWeeks,

When I look at the result in a table I see 1-2, 3-4, 5-6 etc. So far so good

But when using this result in a selection, it's only filtering the last week.
Selection week 34-35 only shows week 35
See image below

2weeks.jpg

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Your field TwoWeeks is only linked with one Week, e.g week 35. To fix this you could try something like:

2*(floor((1+week(PeriodDate))/2))-1 &'-'& 2*(floor((1+week(PeriodDate))/2)) as TwoWeek


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Your field TwoWeeks is only linked with one Week, e.g week 35. To fix this you could try something like:

2*(floor((1+week(PeriodDate))/2))-1 &'-'& 2*(floor((1+week(PeriodDate))/2)) as TwoWeek


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

It works!
Thanks.