Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
gayatri7
Creator II
Creator II

Need to create a comparison chart based on Period

Hi,

I want to make a chart which shows the below details in Qlikview.  For eg.

Data selected for Collection month April

April
MonthCollection
-3Jan-1624000
-2Feb-162406
-1Mar-164562
0Apr-1649000
1May-165000
2Jun-164000
3Jul-162000
4Aug-1610
5Sep-16

5

 

Data selected for Collection month June

June
MonthCollection
Jan-16
-4Feb-1640
-3Mar-162400
-2Apr-1624
-1May-163000
0Jun-1650000
1Jul-165100
2Aug-163000
3Sep-161000
4Oct-16500
5Nov-1650
6Dec-165

Now the chart should compare the period wise. if I select Apr for first period it should consider as period 0 and rest month should get calculated accordingly. And if second period is June, June should be consider as Period 0. and chart should compare the period 0 of 1st table to period 0 of second table. As shown below

 

Y Axis
X AxisAprilJune
-4040
-3240002400
-2240624
-145623000
04900050000
150005100
240003000
320001000
410500
5550
605

Attached is the chart created in excel.

22 Replies
gayatri7
Creator II
Creator II
Author

Hi,

I have got the output as expected. Just wanted to do few formatting in the graph. As in chart I am comparing the Collection amount for 2 different period ,

1) I want to show the percentage of Collection.

2) In Legends instead of '#Premium Collection P1' , I want to display #Premium Collection May 2016, I mean I want to fetch the month selected in 1st List box. Same with second it should be '#Premium Collection Sep 2016'

Collection Comparison.PNG

Kushal_Chawda

There is alternate state, for a while it confused me, but I gotcha

Use below expressions for lable

='#Premium Collection '& Only({ChartAlt1}CollectionMonth)

='#Premium Collection '& Only({ChartAlt2}CollectionMonth)

gayatri7
Creator II
Creator II
Author

Cool!!! got the expected label. But Percentage value m still stuck. . Just wanted to inform I have restricted the period value with only 2016 year. So when I want to calculate the % of Month Apr2016 it should be Sum(Collection- Apr2016)/ Sum(Collection Jan2016......Dec 2016).

Note: I have months from 2007 to 2017 (Advance payment).... I don't want to include all those in % calculation.