Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi EveryBody,
I have 2 tables
'Promotion' Table
Id IdTransaction CodePromo
1 1011 A
2 1012 A
3 1013 B
4 1014 C
5 1015 A
6 1016 B
7 1017 C
And 'Group' Table
IdPerson IdTransaction
13111 1011
13111 1012
13112 1013
13112 1014
13113 1015
13113 1016
13113 1017
I want a formula that add a new column [Idperson] in Promotion table
Thank's a lot
Solved! Go to Solution.
Hi @Anonymous
You may add a calculated column as below:
Column =
LOOKUPVALUE (
'Group'[IdPerson],
'Group'[IdTransaction], Promotion[IdTransaction]
)
Regards,
Cherie
Hi,
If there will never be repetitions in the idTransactions column of the Group Table, then you can create a relationship from the idTransactions column of the Promotion Table to the idTransactions column of the Group Table. Then write this calculated column formula in the Promotion Table
=RELATED([Group[idPerson])
Hope this helps.
Hi,
If there will never be repetitions in the idTransactions column of the Group Table, then you can create a relationship from the idTransactions column of the Promotion Table to the idTransactions column of the Group Table. Then write this calculated column formula in the Promotion Table
=RELATED([Group[idPerson])
Hope this helps.
Hi @Anonymous
You may add a calculated column as below:
Column =
LOOKUPVALUE (
'Group'[IdPerson],
'Group'[IdTransaction], Promotion[IdTransaction]
)
Regards,
Cherie
@Anonymous,
Why don't you create a Relationship based on IdTransaction?
It will give the same output that what are looking for now.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.