The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
User | Count |
---|---|
69 | |
68 | |
64 | |
54 | |
28 |
User | Count |
---|---|
112 | |
81 | |
65 | |
48 | |
43 |