Forum Discussion
Combine two columns from different tables in SUMMARIZE() statement
Hello everyone,
I need to create a measure that has a virtual table that combines 2 columns from two different tables. Right now I only have the dax to combine two columns from the same table in the summarize function:
Why not try
SUMMARIZE ( DIM_GEO_NO_RLS, DIM_TERRITORIO_NO_RLS[DES_TERRNIVEL2], DIM_GEO_NO_RLS[DES_GEONIVEL2] )
3 Replies
- ITManuel
Responsive Resident
Hi Anonymous ,
You can SUMMARIZE a table also based on columns of other table, if the the other table is on the "1" side of a 1-Many relationship.
Just 1 tip: If you provide code in your post, please format the code and insert it via the "Insert/Edit code sample" box. This will allow users to read and understand your code much more easily.
Br
- AnonymousNot applicable
Hi Manuel, thanks for your reply. The table DIM_GEO_NO_RLS is however on the "many" side of the 1-many relationship since it has all the the cities that belong to the individual states that are in DIM_TERRITORIO_NO_RLS. I tried to do ti like this but it doesnt work:
SUMMARIZE(DIM_TERRITORIO_NO_RLS,DIM_TERRITORIO_NO_RLS[DES_TERRNIVEL2],DIM_GEO_NO_RLS[DES_GEONIVEL2])do you have any suggestions maybe how it could work?- ITManuel
Responsive Resident
Why not try
SUMMARIZE ( DIM_GEO_NO_RLS, DIM_TERRITORIO_NO_RLS[DES_TERRNIVEL2], DIM_GEO_NO_RLS[DES_GEONIVEL2] )