Forum Discussion
Comparing Two Sales Tables
- 1 year ago
Hi Gurpreetsingh1 ,
Thank you for reaching out to the fabric community. We have reviewed your scenario and implemented the logic to classify the records based on Product Code and Amount comparisons between the Salesforce and SAP tables.
FYI:
Based on our testing, the logic is working as expected. Please refer to the Match Type column in the result to view the classification.
For better understanding, I’ve attached the PBIX file. Kindly go through it, it demonstrates the logic and output based on your scenario.
Thank you for your response, m4ni & Deku .
If my message helped solve your issue, please mark it as Accepted Solution. If it was helpful, consider giving it a Kudos.
Hi m4ni Thanks for the help, but i need both the matched & unmatched orders in same table along with other columns.
Eg Desired Result
Sales Order Product Code (SAP) Amount (SAP) Product Code (SF) Amount (SF) Match Type
| SO101 | PRD001 | 5,000 | PRD001 | 5,000 | ✅ Full Match |
| SO101 | PRD002 | 3,200 | PRD008 | 3,000 | ❌ Product Code Mismatch |
| SO102 | PRD003 | 2,500 | PRD009 | 2,400 | ❌ Product Code Mismatch |
| SO103 | PRD004 | 4,000 | PRD004 | 4,100 | ⚠️ Amount Mismatch |
| SO104 | PRD005 | 1,800 | — | — | ❌ Missing in SF |
| SO104 | PRD006 | 2,200 | PRD006 | 2,200 | ✅ Full Match |
| SO105 | — | — | PRD007 | 2,800 | ❌ Missing in SAP |
Hi Gurpreetsingh1 ,
Thank you for reaching out to the fabric community. We have reviewed your scenario and implemented the logic to classify the records based on Product Code and Amount comparisons between the Salesforce and SAP tables.
FYI:
Based on our testing, the logic is working as expected. Please refer to the Match Type column in the result to view the classification.
For better understanding, I’ve attached the PBIX file. Kindly go through it, it demonstrates the logic and output based on your scenario.
Thank you for your response, m4ni & Deku .
If my message helped solve your issue, please mark it as Accepted Solution. If it was helpful, consider giving it a Kudos.