Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
19 | |
17 | |
12 | |
9 | |
9 |