Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |