The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have two tables:
Fisrt:
id | code | value |
56786 | _1 | first_value |
56786 | _2 | second_value |
56786 | _3 | third_value |
56786 | _4 | forth_value |
56786 | _5 | fifth_value |
56786 | _6 | sixth_value |
Second:
id | code | value |
56786 | _3 | third_value |
35678 | _4 | forth_value |
55567 | _1 | first_value |
So, in first we apply 6 kinds of values per each person. But in second we got one chosen by person value per that person. How can I add any column from first table to second? Related on person_id and code.
It can be complicated, so, if smth is unclear, ask me please, because I find it hard to do it. Thank you!
Solved! Go to Solution.
Hi @Anonymous ,
you can concatenate both id and code columns and have both the tables related on that composite key. Then use RELATED() to add any column from the first table to the second.
Regards,
Aditya
Hi @Anonymous ,
you can concatenate both id and code columns and have both the tables related on that composite key. Then use RELATED() to add any column from the first table to the second.
Regards,
Aditya
User | Count |
---|---|
20 | |
8 | |
7 | |
7 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
9 | |
8 |