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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 64 | |
| 50 | |
| 45 |