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 would like to create a new column in table Opportunity called Partner.
This new column Partner the Opportunity table is to be populated if:
Then take the first match found, and populate the new column by taking the name from the Account table column Name.
Solved! Go to Solution.
@rtv73 Need more information like relationships to be exact but should be something like:
Opportunity Partner Column =
VAR __OpportunityPartner = MINX( FILTER( RELATEDTABLE('Opportunity Partner'), [isPrimary] = TRUE() && [Role_c] = "Reseller" ), [Account_c] )
VAR __Account = MAXX( FILTER( 'Account', [Account_c] = __OpportunityPartner), [Name])
RETURN
__Account
@rtv73 Need more information like relationships to be exact but should be something like:
Opportunity Partner Column =
VAR __OpportunityPartner = MINX( FILTER( RELATEDTABLE('Opportunity Partner'), [isPrimary] = TRUE() && [Role_c] = "Reseller" ), [Account_c] )
VAR __Account = MAXX( FILTER( 'Account', [Account_c] = __OpportunityPartner), [Name])
RETURN
__Account
Thank you Greg, I will give it a try!
To give you more information about the relationships, here is the info:
Opportunity[Id] : Opportunity Partners[Opportunity__c]
1 to Many
OpportunityPartner[Partner__c] : Account[Id]
Many to 1
Thanks again!
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 |
---|---|
74 | |
73 | |
56 | |
38 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |