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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
martin_hamilton
Creator
Creator

include a variable in load script

Hi

Am determining the quarter based on a date field but want to include a variable for the current year or pull it from the original date field. so far i have this:

'Q' & ceil(month([CONNECTED_MONTH])/3)

Which is created a value of Q1, Q2, Q3, Q4.

I wish to have it state Q1-2016, etc

Any help appreciated.

Cheers

Martin

Labels (1)
4 Replies
sunny_talwar
MVP
MVP

Not sure I understand the logic for creating Q1-2016. Can you elaborate?

martin_hamilton
Creator
Creator
Author

I was looking at providing a filter function on a dashboard so someone could select the Quarter data associated with the records.

Anil_Babu_Samineni
MVP
MVP

You want to show like this

Q1-2016

Q2-2016

Q3-2016

Q4-2016

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
martin_hamilton
Creator
Creator
Author

yes if possible.

thanks