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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Week 52 in Jan


Dear All,

I have a cyclic group year/month/day in a chart and with the current calendar setting 1 Jan 2017 falls into week 52. My issue is when filtering data for Jan it shows week 52 as well. How can I just show week 52 in Dec 20166 and not in Jan2017 please?

month.png

Thanks

Neda

10 Replies
adamdavi3s
Master
Master

Hi Neda,

Just apply a similar logic when you generate your master calendar

So something like

=if(month(OrderDate)=1 and week(OrderDate)=52,0, 1) as weekcheckflag


However you'll still need to alter your expressions:


sum({<weekcheckflag={'1'}>} value)


Or select the flag as a default.



Just as a random aside, can I suggest keeping all expressions in variables and then the definitions of those variables in a file, this way it makes life a lot easier when you need to make this sort of change