Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |