Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |