Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have two tables, Lead and Opportunity. I want to be able to calculate the sum of the Value in Opportunity if the OppId appears in Lead.
Effectively I want to show the value of the Opportunities that have originated from the Leads.
The Lead table would be similar to this;
| LeadId | OppId |
| 1 | 9 |
| 2 | |
| 3 | 7 |
| 4 |
The Opportunity table similar to this;
| OppId | Value |
| 9 | £100 |
| 8 | £300 |
| 7 | £50 |
| 6 | £200 |
The sum of all Opportunities is £650 but the desired result is the sum of OppId 9 and 7, therefore £150, as these are the only two opportunities that appear in the Lead table.
The Lead and Opportunity tables are joined to a common Date table, therefore there is no active relationship between Lead and Opportunity.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |