Forum Discussion
patrick3
Helper II
5 years agoDAX - New table, adding specific values based on original column
Hi all, Not 100% sure how to explain this, but I'll try. Let's say ive got a table with 2 columns: UserId, Package Code And another table with 2 columns: Package Code, Product Code ...
- 5 years ago
Hi,
In the Query Editor, merge Table2 into Table1 based on the Package Code. If a Package code has multiple Product codes, then multiple lines will get created in the merged dataset.
Ashish_Mathur
Super User
5 years agoHi,
Create a relationship (Many to One and Single) from the Package Code column of Table2 to the Package code column of Table1. To your visual, drag Package code from Table1 and Product code from Table 2.
Hope this helps.
patrick3
Helper II
5 years agoHi,
That would work, except I will need to do further calculations on the table, which cannot be done just in a measure
- Ashish_Mathur5 years ago
Super User
Hi,
In the Query Editor, merge Table2 into Table1 based on the Package Code. If a Package code has multiple Product codes, then multiple lines will get created in the merged dataset.