Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Current Quarter along with last 3 quarters

Hi,

I wanted to display current quarter data along with last 3 quarters, how can i achieve this

3 Replies
Anil_Babu_Samineni

You meant to say this?

Sum({<DateField={'>=$(=QuarterStart(Max(DateField), -3))<=$(=QuarterEnd(Max(DateField)))}>} Sales)

OR

Sum({<Quarter = {">= $(=Max(Quarter)-3)<= $(=Max(Quarter))"}>}Sales)

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
Not applicable
Author

Hi ANil

Thanks so much for you reply, but here where are we mentioning Current quarter.

Anil_Babu_Samineni

Max(Quarter) indicates the Current Quarter only. This returns Last 3 quarters along with the Current Quarter

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