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

Announcements
Data Works for AI is here - Join the discussion and enter to win a pair of Qlik kicks: Join the Conversation!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

I need the year for last quarter

Hi Guys,

I need the year for the last quarter, so I need the year for Q3 "2016" in a expression.

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be

=Year(QuarterStart(Today(), -1))

View solution in original post

4 Replies
varshavig12
Specialist
Specialist

Can you please elaborate your requirement ?

Anonymous
Not applicable
Author

I need a variable expression to tell me what year it was in the previous quarter.  We are in Q1 2017 now, last quarter was Q3 2016, I need an expression to hold the value of 2016, and next quarter when we are in Q2 2017, it will hold the value of 2017.

sunny_talwar
MVP
MVP

May be

=Year(QuarterStart(Today(), -1))

Anonymous
Not applicable
Author

Thanks Sunny, I was nearly there, I was leaving the year bit out.