Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator
Creator

Week format

I'm loading data in my app and is using this expression:
v_previousWeek = Replace(weekname(today(1)-7),'/','-');
The result is e.g. '2019-09'

I want to have the format as '2019-9' instead. How can this be done?

1 Solution

Accepted Solutions
Highlighted
Specialist
Specialist

v_previousWeek=year(today())&'-'&Week(today())

View solution in original post

1 Reply
Highlighted
Specialist
Specialist

v_previousWeek=year(today())&'-'&Week(today())

View solution in original post