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 everyone, I would appreciate some help on this:
I have two tables that are linked through an OrderID. Let’s call the tables TableA and TableB.
TableA has unique OrderIDs. In TableB an OrderID can appear multiple times.
In TableA I want to add a calculated column with the name ‘Country’.
I can find the value for this new column in TableB[Keyword]. However TableB does not have unique OrderIDs and needs to be filtered on TableB[KeywordGroup] first. Only if the value in TableB[KeywordGroup] is “Country”, I want to return the value from TableB[Keyword].
So what I’m trying to achieve is this:
In the new column TableA[Country] I would like to return the value from TableB[Keyword] if TableB[KeywordGroup] = Country.
It’s probably very logical, but can’t find the right way of getting this done.
Hope you can help.
Solved! Go to Solution.
Hi @JamieLee
In table B, create a new table
Table = SUMMARIZE(FILTER(ALL(tableB),[KeywordGroup]="country"),[OrderID],[Keyword])
Then edit relationship between Table A and the new table
In table A, create a calculated column
Column = RELATED('Table'[Keyword])
Best Regards
Maggie
Hi @JamieLee
In table B, create a new table
Table = SUMMARIZE(FILTER(ALL(tableB),[KeywordGroup]="country"),[OrderID],[Keyword])
Then edit relationship between Table A and the new table
In table A, create a calculated column
Column = RELATED('Table'[Keyword])
Best Regards
Maggie
This works. Thanks Maggie!
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 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |