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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
NickBentley
Contributor III
Contributor III

Creating a variable in text box to display current Month-Year

I have a variable set as vCurrentMonth showing 19 which is the Date.Chron.Month value. 

I would like a textbox to display the value for Date.Month.Year (May-2024) through using the vCurrentMonth variable. 

Does anyone have any suggestions on how this may be done? 

Thanks in advance! 

Date.Chron.Month Date.Period Date.Month.Long Date.Month.Short Date.Year Date.Month.Year
19 7 May May 2024 May-2024
Labels (1)
5 Replies
BrunPierre
Partner - Master II
Partner - Master II

How's vCurrentMonth derived?

NickBentley
Contributor III
Contributor III
Author

At the start of the the script with LET vCurrentMonth = 19;

 

BrunPierre
Partner - Master II
Partner - Master II

What does that specifically represent?

NickBentley
Contributor III
Contributor III
Author

That represents May 2024 in a range of 48 month, June 2024 is 20, July 2024 21 and so on

BrunPierre
Partner - Master II
Partner - Master II

Could you tell me why you want to use a variable for this instead of making use of a dynamic one?