Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Get Previous Quarter and just Display the Date

Hello,

I read this discussion Get Previous Quarter‌ and the answer of stalwar1 because I have the same Problem.

Now I wonder how to display the date.

Data in the example was:

TYQUARTER

201503
201506
201509
201512
201603
201606
201609
201612
201703
201706

Solution was:

LOAD TYQUARTER,

           AutoNumber(TYQUARTER) as QuarterNum

Resident ....

Order By TYQUARTER;

and then you can use this for prev. quarter

{<QuarterNum = {"$(=Max(QuarterNum) - 1)"}>}

My question:

I just want to display the previous quarters TYQUARTER in a table but the statement below dosn't work:

sum({<QuarterNum = {"$(=Max(QuarterNum) - 1)"}>} TYQUARTER)

How to do? I don't have any idea?

Result should be:

TYQUARTER

TYQUARTERPREVIOUSQUARTER
201506201503
201509201506
201512201509
201603201512
201606201603
201609201606
201612201609
201703201612

Thanks a lot!!!

1 Solution

Accepted Solutions
sunny_talwar

In your case you don't need set analysis, but Above() function....

Above(TYQUARTER)

or

Above(TOTAL TYQUARTER)

View solution in original post

1 Reply
sunny_talwar

In your case you don't need set analysis, but Above() function....

Above(TYQUARTER)

or

Above(TOTAL TYQUARTER)