Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Buchannagari
Contributor II
Contributor II

How to Format week data as requred

Hi,

i have week data column like below

WEEK 09

WEEK10

WEEK11...

and in the master calendar week data is there like 

9

10

11...

so i want to use this week column as key column but format is not correct 

How to format it week column from the master calendar

---week(TempDate) As Week_key,

 

Thanks & regards,

Buchannagari.

Labels (2)
1 Solution

Accepted Solutions
Renan
Partner - Contributor
Partner - Contributor

Hi,

You can do it in two different ways:

  • Converting week in master calendar: 'WEEK ' & Num(Week(TempDate), '00') as Week_key
  • Converting the data column: Num(KeepChar(TempDate, '0123456789')) as Week_key

View solution in original post

2 Replies
Renan
Partner - Contributor
Partner - Contributor

Hi,

You can do it in two different ways:

  • Converting week in master calendar: 'WEEK ' & Num(Week(TempDate), '00') as Week_key
  • Converting the data column: Num(KeepChar(TempDate, '0123456789')) as Week_key
Buchannagari
Contributor II
Contributor II
Author

Thank you.