Forum Discussion
Anonymous
2 years agoNot applicable
Creating Column in Table View Combining Two Tables with same ids but one with duplicates
I have two tables as depicted in the visuals here. As you can see table 2 has a mix of blanks and additional entries. I need table A exactly as is but with the blanks removed and additional entries f...
DimaMD
2 years agoSolution Sage
Anonymous Hi try it 2 calculate table
CombinedTable =
FILTER (
UNION (
SELECTCOLUMNS ( 'Table 1', "ID", 'Table 1'[Col1], "Value", 'Table 1'[Col2] ),
SELECTCOLUMNS ( 'Table 2', "ID", 'Table 2'[Col1], "Value", 'Table 2'[Col2] )
),
NOT ISBLANK ( [ID] )
)and
NeededTable =
SUMMARIZE (
CombinedTable,
CombinedTable[ID],
"CombinedValues", CONCATENATEX (
VALUES ( CombinedTable[Value] ),
CombinedTable[Value],
","
)
)- Anonymous2 years agoNot applicable
Thanks for the reply. For the 1st one i get an error. The expression refers to muliple columns. Multiple columns cannot be converted to a scalar value
- DimaMD2 years agoSolution Sage
Anonymous Hi, Show your DAX code