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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Previous Quarter


Hi,

Trying to derive Current Quarter and Previous Quarter for the Value available and have stuck in Detrmining Previous Quarter.

The value  available is :

Qtr.png

Current is : Q12015.

How to determing Previous , i.e. here : Q42014 ?

Any help appreciated.

Thanks!

Labels (1)
3 Replies
MK_QSL
MVP
MVP

Create AutoNumber for Quarter in your Script..

maxgro
MVP
MVP

for string

=if(left('Q22015',2)='Q1', 'Q4' & (right('Q22015',4)-1), 'Q' & (mid('Q22015',2,1)-1) & right('Q22015',4))

replace 'Q22015' with your quarter field

=if(left(Reporting_Quarter,2)='Q1', 'Q4' & (right(Reporting_Quarter,4)-1), 'Q' & (mid(Reporting_Quarter,2,1)-1) & right(Reporting_Quarter,4))

prabhu0505
Specialist
Specialist