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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
0li5a3a
Creator III
Creator III

Transform W201613 to Week number like 13

Hi,

Does anyone know if I can transform in a Line Chart / Dimension the week format from W201613 to 13?

Regards,

C

13 Replies
0li5a3a
Creator III
Creator III
Author

Please ignore my preview replay. I tried now in the dimension and the AddWeeks highlighted with red and all the function after this they are not colored in blue...  I think the syntax is wrong


Please find below:

Capture.PNG

zhadrakas
Specialist II
Specialist II

just typed this Expression without testing. There is no addweeks function in QlikView

try to use addmonths instead (-4 shoud be equivalent to 16 weeks)

=if(CalendarPeriodnum>= num(WeekStart(AddMonths(max(CalendarPeriod),-4)))
AND CalendarPeriodnum <= num(WeekEnd(max(CalendarPeriod))), DATE#(date#(RIGHT(OP.YrWeek,2))))

Anonymous
Not applicable

Use something like : right(Week,2)

0li5a3a
Creator III
Creator III
Author

I used this and all the data just gone....

=if(CalendarPeriodnum>= num(WeekStart(AddMonths(max(CalendarPeriod),-4))) AND CalendarPeriodnum <= num(WeekEnd(max(CalendarPeriod))), DATE#(date#(RIGHT(OP.YrWeek,2)))). Is an error into dimension formula

Capture.PNG