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: 
Anonymous
Not applicable

Select last 3 quarters

Hi guys,

I need to select last 3 quarters.

I load the variable

dual(QuarterName(QuarterStart(date)),QuarterName(QuarterStart(date))) as QYYYY

The result is below

Capture.JPG.jpg

In expression I use set analysis

{<QYYYY={">=$(=QuarterName(QuarterStart(max(QYYYY))-100)"},AAA={1}>}

Should I use only on date level like my week selection?

{<oDate={">=$(=Date(WeekStart(date(today()))-84))"}

Thanks,

Labels (1)
1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=Sum({<oDate={'>=$(=QuarterStart(Today(), -3))<=$(=QuarterEnd(Today(), -1))'}>} Sales )

Hope this helps you.

Regards,

Jagan.

View solution in original post

1 Reply
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=Sum({<oDate={'>=$(=QuarterStart(Today(), -3))<=$(=QuarterEnd(Today(), -1))'}>} Sales )

Hope this helps you.

Regards,

Jagan.