Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Karahs
Partner - Creator
Partner - Creator

Subtracting two fields from two different tables

Hello Community,

Can we subtract two different fields from two different tables?

For eg.  Unit Price and Quanity are in one table AND Cr_Unit_Price and Cr_Quantity are in another table,

             I need to calculate Sum(Unit Price * Quantity) - Sum(Cr_Unit_Price*Cr_Quantity)

I am getting no result, can anyone give any solution for this?

aaaa.PNG

Thanks in advance

4 Replies
sunny_talwar

Are they linked in anyway?

Karahs
Partner - Creator
Partner - Creator
Author

Yes they are linked with Document No.

sunny_talwar

Then I think you should be able to do it... Is it not working?

rittermd
Master
Master

When I have had to do something like this in the past I joined the 2 tables into a single table.  Then followed that with a resident load step of that single table and did my calculation in this step.