Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

To get last 8 years quarters

Hi All,

I have 8 years of data, if i click on current year Quarter 1 data then it should display last 8 years Quarter 1 data in a table.

if i click on current year Quarter 2 data then it should display last 8 years Quarter 2 data in a table...........

I tried it using set analysis but i'm unable to find the solution for this, Could you please give me some idea on this

Thanks,

VV

1 Solution

Accepted Solutions
Not applicable
Author

Using SET analysis with ONLY function could be the alternative idea.

See the attached file.

I hope this will help you.

View solution in original post

5 Replies
whiteline
Master II
Master II

Hi.

Add a field to your calendar that corresponds to Quarter # regardless of the year.

ashfaq_haseeb
Champion III
Champion III

Hi,

Alongside what whiteline suggest.

I would like you to create a composite key out of year and quarter even as shown below.

Year&Quarter as YearQuater

Select in field quarter let say you have selected quarter1(Q1)

and use this field fir displaying eight year result with proper breakups.

Regards

ASHFAQ

dharmarasu
Creator
Creator

Hi reddy,

       u get it by using set expression but one more thing u want to add is Conditional show.

       in expression Tab, enable conditional dialog box and write

          if(quarter='Quarter 1')

               and then in expression for an example

        =sum({<Year=,quarter={Quarter1}>}sales).

like wise u want to add  expressions for Quarter2, Quarter3, Quarter4 .

hope this helps

Regards,

Dharma

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=Sum({<YearDimensionName=, MonthDimensionName=, DateDimensionName= >} MeasureName)

YearDimensionName, MonthDimensionName and DateDimensionName with your actual Year, Month and Date fields.

{<YearDimensionName=, MonthDimensionName=, DateDimensionName= >}  this excludes the selection of Year, Month and Date dimensions.

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Using SET analysis with ONLY function could be the alternative idea.

See the attached file.

I hope this will help you.