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

Accumulate quarters - stacked charts

Hi Guys

I want to accumulate everything in sales, say last 8 quarters, but in the chart I only want to show the last four and stacked together showing Product A and Product B.

I have Date field in Month, Year, QuarterYear

Regards

16 Replies
miguelbraga
Partner - Specialist III
Partner - Specialist III

Can you please add some sample data so we can provide you a solution for your needs?

Regards,

MB

Anonymous
Not applicable
Author

This is the dummy data, the calendar is actually auto generated in the script

   

DateProduct SalesDateMonthYearQuarterQuarterYear
01/01/2014Product A £    20.00 01/01/201412014Q1Q1-2014
01/01/2014Product B £    30.00 01/02/201422014Q1Q1-2014
01/02/2014Product A £    40.00 01/03/201432014Q1Q1-2014
01/02/2014Product B £    50.00 01/04/201442014Q2Q2-2014
01/03/2014Product A £    60.00 01/05/201452014Q2Q2-2014
01/03/2014Product B £    70.00 01/06/201462014Q2Q2-2014
01/04/2014Product A £    80.00 01/07/201472014Q3Q3-2014
01/04/2014Product B £    90.00 01/08/201482014Q3Q3-2014
01/05/2014Product A £  100.00 01/09/201492014Q3Q3-2014
01/05/2014Product B £  110.00 01/10/2014102014Q4Q4-2014
01/06/2014Product A £  120.00 01/11/2014112014Q4Q4-2014
01/06/2014Product B £  130.00 01/12/2014122014Q4Q4-2014
01/07/2014Product A £  140.00 01/01/201512015Q1Q1-2014
01/07/2014Product B £  150.00 01/02/201522015Q1Q1-2014
01/08/2014Product A £  160.00 01/03/201532015Q1Q1-2014
01/08/2014Product B £  170.00 01/04/201542015Q2Q2-2014
01/09/2014Product A £  180.00 01/05/201552015Q2Q2-2014
01/09/2014Product B £  190.00 01/06/201562015Q2Q2-2014
01/10/2014Product A £  200.00
01/10/2014Product B £  210.00
01/11/2014Product A £  220.00
01/11/2014Product B £  230.00
01/12/2014Product A £  240.00
01/12/2014Product B £  250.00
01/01/2015Product A £  260.00
01/01/2015Product B £  270.00
01/02/2015Product A £  280.00
01/02/2015Product B £  290.00
01/03/2015Product A £  300.00
01/03/2015Product B £  310.00
01/04/2015Product A £  320.00
01/04/2015Product B £  330.00
01/05/2015Product A £  340.00
01/05/2015Product B £  350.00
01/06/2015Product A £  360.00
01/06/2015Product B £  370.00
Anonymous
Not applicable
Author

How do I attach an excel file, haven't been on here for a while.

miguelbraga
Partner - Specialist III
Partner - Specialist III

Go to the Advanced Editor. Through there you can attach files

I'll analyse your problem further.

Just two questions:

Why do you have two fields with the same name?

What those date fields represent?

Regards,

MB

Anonymous
Not applicable
Author

That's showing them as two separate tables and the Date field is whats linking them.

Anonymous
Not applicable
Author

The Excel data.

miguelbraga
Partner - Specialist III
Partner - Specialist III

What about this?

Regards,

MB

Anonymous
Not applicable
Author

No I'm afraid that's even easy for me lol.  I need this and then only show the last three quarters not all four.

   

Q2Q3Q4

   

Q1Q2Q3Q4
miguelbraga
Partner - Specialist III
Partner - Specialist III

Check out this solution

Regards,

MB