Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

compare current quarter with previous quarter

Hi All

i have two text box.

first text box have to return the maximum quarter and maximum year that means : 2014-Q4

second textbox have to return the previous quarter of the maximum year that means 2014-Q3

suppose if select Year 2013 and select quarter 1 it has be return like this 2013-Q1 (tb1) vs 2012-Q3 (tb2)

Can you help me to create the formula

FiscalMonthMonthYrFinquarter
01Nov20141
02Dec20121
03Jan20131
04Feb20142
05Mar20132
06Apr20142
07May20143
08Jun20123
09Jul20123
10Aug20144
11Sep20144
12Oct20134
1 Solution

Accepted Solutions
2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Current Year Quarter

=Max(Yr) & '-Q' &Max(Finquarter)

Previous Quarter

=If(Max(Finquarter)=1, (Max(Yr)-1) & '-Q4', Max(Yr) & '-Q' & (Max(Finquarter) -1))

or

//=If(Max(Finquarter)=1, Max(Yr)-1, Max(Yr)) & '-Q' & (Mod(2+Max(Finquarter),4)+1)

ashfaq_haseeb
Champion III
Champion III

Hi,

Check this

http://community.qlik.com/docs/DOC-7045

Regards

ASHFAQ