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

How to calculate difference between only the last 2 columns at the end of pivot table?

Hello,

How to calculate difference between only the last 2 columns at the end of pivot table?

   

OrgAgeing_rangePeriod_MonthNameDec 2016Jan 2017Feb 2017Mar 2017Apr 2017May 2017Difference Between Apr and May 2017 here
SHP1. less than 3 months 5,337,160.885,337,160.885,337,160.885,337,160.885,337,160.885,337,160.88?
SHP2. between 3 and 6 months 2,317,251.172,317,251.172,317,251.172,317,251.172,317,251.172,317,251.17
SHP3. between 6 and 9 months 527,034.63527,034.63527,034.63527,034.63527,034.63527,034.63
SHP4. between 9 and 12 months 254,430.23254,430.23254,430.23254,430.23254,430.23254,430.23
SHP5. between 12 and 24 months 249,442.02249,442.02249,442.02249,442.02249,442.02249,442.02
SHP6. greater than 24 months 47,604.9047,604.9047,604.9047,604.9047,604.9047,604.90
SHPTotal 8,732,923.848,732,923.848,732,923.848,732,923.848,732,923.848,732,923.84
WHS1. less than 3 months 14,946,034.3914,946,034.3914,946,034.3914,946,034.3914,946,034.3914,946,034.39
WHS2. between 3 and 6 months 1,379,144.181,379,144.181,379,144.181,379,144.181,379,144.181,379,144.18
WHS3. between 6 and 9 months 208,215.23208,215.23208,215.23208,215.23208,215.23208,215.23
WHS4. between 9 and 12 months 91,040.0391,040.0391,040.0391,040.0391,040.0391,040.03
WHS5. between 12 and 24 months 36,569.0036,569.0036,569.0036,569.0036,569.0036,569.00
WHS6. greater than 24 months 15,668.3115,668.3115,668.3115,668.3115,668.3115,668.31
WHSTotal 16,676,671.1416,676,671.1416,676,671.1416,676,671.1416,676,671.1416,676,671.14
Total 25,409,594.9825,409,594.9825,409,594.9825,409,594.9825,409,594.9825,409,594.98
1 Reply
kamal_sanguri
Specialist
Specialist

Hi,

Till the time you have dimension (Period_MonthName) dragged over horizontally. It would not be possible to show the difference in one column. Any new expression would get splitted under different Period.


something like this..


Capture.PNG

I think you have to revisit your data model to get it done.

Regards,

-Kamal