Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi there,
Is it possible to bring of Product column from Tables 1 and 2 to new table as shown in below example?
Table 1 | Table 2 | Expected Outcome | ||||
Product | Value | Product | Value | Product | ||
C | 80 | A | 60 | A | ||
D | 90 | B | 70 | B | ||
C | ||||||
D |
Regards
Jayanthan
Solved! Go to Solution.
Hi @jayanthan,
you can do this with DAX and the 'New Table'-button in the modelling tab like this:
Table 3 = UNION(VALUES(Table1[product]);VALUES(Table2[Product]))
But if you want to create relationships between these tables, you will get an circular dependency error.
If you need relationships, you will have to do this in Power Query/Edit Queries. Use the Append-button, in the Home tab and select the two tables. This will do an union of your two tables. Then strip away the columns you don't need by right clicking the Product column and select 'Remove other columns'. Then still in the Home tab, locate the 'Remove Rows'-button and click on it. This will give you a short list of operations, select 'Remove duplicates'. Now click 'Close & apply' and you are done
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi @jayanthan,
you can do this with DAX and the 'New Table'-button in the modelling tab like this:
Table 3 = UNION(VALUES(Table1[product]);VALUES(Table2[Product]))
But if you want to create relationships between these tables, you will get an circular dependency error.
If you need relationships, you will have to do this in Power Query/Edit Queries. Use the Append-button, in the Home tab and select the two tables. This will do an union of your two tables. Then strip away the columns you don't need by right clicking the Product column and select 'Remove other columns'. Then still in the Home tab, locate the 'Remove Rows'-button and click on it. This will give you a short list of operations, select 'Remove duplicates'. Now click 'Close & apply' and you are done
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |