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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

extra Row in Pivot table

Hi

I have following pivot table in my QV document

  

MONTHBRANCITYTotal
Jan10,559,2604,474,77015,034,030
Feb10,230,2463,339,78413,570,030
Mar10,901,8573,112,30714,014,164
Apr12,596,2114,771,91517,368,126
May9,078,5033,868,52112,947,024
Jun11,159,0573,839,04714,998,104
Total64,525,13423,406,34487,931,478

I want to add Extra rows in the table  which is like the table given below

  

MONTHBRANCITYTotal
Jan10,559,2604,474,77015,034,030
Feb10,230,2463,339,78413,570,030
Mar10,901,8573,112,30714,014,164
Apr12,596,2114,771,91517,368,126
May9,078,5033,868,52112,947,024
TOTAL53,366,07719,567,29772,933,374
Avg. Five Months10,673,2153,913,45914,586,675
Jun11,159,0573,839,04714,998,104
Increase(decrease)485,842-74,412411,429

Is this possible? If so pls help me to do it

Labels (1)
4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can try this technique: How IntervalMatch Solved My Profit and Loss Dilemma.

Otherwise the answer is No.


talk is cheap, supply exceeds demand
Anil_Babu_Samineni
MVP
MVP

Might be this is Not possible

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
marcus_sommer
MVP
MVP

You need to add these values to your MONTH field (maybe you creates an extra field for these pivot to don't disturb your normal field view and behaviour) with a concatenate load:

concatenate (Calendar)

load * Inline [

MONTH

TOTAL

Avg. Five Months

];

and within the expressions you need to query the value of the MONTH field with an expression like:

pick(match(MONTH, 'TOTAL', 'Avg. Five Months') + 1,

     sum(value),

     sum(TOTAL value),

     avg(aggr(sum(TOTAL value), MonthNum)))

I think you will need some adjustements to the expressions but in general these approach will work

- Marcus

upaliwije
Creator II
Creator II
Author

Thanks all for your replies helping me. I am working on your suggestions