Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
See why Qlik was named a Leader in the 2025 Gartner® Magic Quadrant™ for Augmented Data Quality Solutions: GET THE REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Darumaka
Contributor
Contributor

YYYYMM to date variable

I have a numeric variable that contains year and month in the format YYYYMM and I have a few questions.

How do I create a date variable from this variable (day can be 1)?
What is the best way to create  another variable with the format YYYY-MM? (need this for presentation)

In the end I want to have a way to make a column that calculates the difference compared to same month previous year, will the date variable help me achieve this?

Grateful for help and also if someone could redirect me to some documentation on this topic.

10 Replies
Darumaka
Contributor
Contributor
Author

Ok, I get that to work but it means that it can't be used together with the variable Year_Month in the dimension. It is perfectly fine, I have now created a new table for the differences using the year and monthname dimension (not the combined year and month). So I am content.