Hi,
We have 2 queries which are merged on one key that is Vendor key. Query1 datasource is BI and query2 datsasource in excel file, both queries are merged on vendor key which is the only matching field we have. In query1 we have Netvalue kf and in query2 we have Invoice Value.
Query1
CompanyCode | MatGrp | Vendor Key | NetValue |
---|---|---|---|
100 | 3901 | 400005 | 30000 |
200 | 3901 | 400006 | 32000 |
200 | 3904 | 400007 | 21000 |
300 | 3905 | 400009 | 33000 |
Query2
Area | Status | Vendor Key | Invoice |
---|---|---|---|
1000 | Hold | 400011 | 210 |
2000 | Complete | 400009 | 205 |
1000 | Hold | 400006 | 200 |
2000 | Active | 400005 | 220 |
I want to create variable which can show
Area | NetValue |
---|---|
2000 | 63000 |
1000 | 32000 |
Here NetValue(from query1) is created based on Area(from query2) depending on Vendor Key which are matched in both queries.
Also have to do vice-versa for Invoice.
Can anyone suggest how to get these values without taking Vendor Key inside table view.
Thanks,
Ankit