Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

Groupping Total in Pivot table

Dear all

I have following type of  pivot table for calculating P&L

   

GROUPTYPEAMOUNT
AINCOME58000
BEXPENSE45000
TOTAL(A-B) 13000

In pivot table I want to display (A-B) total  how to achieve the same .

Thanks in adv

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
1 Solution

Accepted Solutions
PrashantSangle

Hi,

Try in expression column

sum(if(wildmatch(Type,'Expense'),Amount * -1,Amount))

and if you dont want show Expense amount in negative then go to Number tab select Integer/Fixed to

and set below pattern

#,##0.00;#,##0.00;

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

4 Replies
avinashelite

Hi Vikas,

If you want to added it as a new column they you can simply added it as expression but if you want it as a row value then try with the rangesum() and above() combination to get read the previous value and get the difference out of it

PrashantSangle

Hi,

Try in expression column

sum(if(wildmatch(Type,'Expense'),Amount * -1,Amount))

and if you dont want show Expense amount in negative then go to Number tab select Integer/Fixed to

and set below pattern

#,##0.00;#,##0.00;

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Anonymous
Not applicable

Hi Vikas

Here is solution (data file was connected with qvw).

Regards, Alex

vikasmahajan
Author

Thanks to all  how has replied ,

I have Create Dummy Scenario for the same Find attached QVW with my requirement can any one tell me how to achieve the same .

Total

C =  A + B  

in pivot table.

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.