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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
waszcma1
Partner - Creator II
Partner - Creator II

Pivot Table Custom subtotal in P&L

Could you  help me to add  custom subtotal but based only on some part of the data?

In this example I would like to have subTotal which calculates total of SALES +  total of DIRECT COSTS  

How Can I achieve this ? is it possible?

 
 

PandL.JPG

Labels (1)
2 Solutions

Accepted Solutions
waszcma1
Partner - Creator II
Partner - Creator II
Author

Good hit! , I forgot about customized dimension option because I am always avoiding it as it is really lowering report performance (but my data model is not so big)

Any way I have discover other options which allows me to create view like this:

waszcma1_0-1600721463370.png

To do so I have use this expression:

waszcma1_1-1600721526299.png


it works fine but I am not sure if this is the best approach. I am still testing it.

View solution in original post

waszcma1
Partner - Creator II
Partner - Creator II
Author

Confirm that the solution I have found  works as I expected.
The only thing is that I had to create some DUMMY line with value 0 for the cumulative subtotal.

View solution in original post

3 Replies
chrismarlow
Specialist II
Specialist II

Hi,

I am not sure you can get just a subtotal in that part of the chart, but you can add a calculated dimension similar to below that will at least show you the values;

20200921_1.png

Cheers,

Chris.

waszcma1
Partner - Creator II
Partner - Creator II
Author

Good hit! , I forgot about customized dimension option because I am always avoiding it as it is really lowering report performance (but my data model is not so big)

Any way I have discover other options which allows me to create view like this:

waszcma1_0-1600721463370.png

To do so I have use this expression:

waszcma1_1-1600721526299.png


it works fine but I am not sure if this is the best approach. I am still testing it.

waszcma1
Partner - Creator II
Partner - Creator II
Author

Confirm that the solution I have found  works as I expected.
The only thing is that I had to create some DUMMY line with value 0 for the cumulative subtotal.