Forum Discussion
Merging of Columns
- Anonymous7 years ago
Hi Eads,
Found the solution for merging columns from different queries having different number of columns.
Below is the code:
TABLE = DISTINCT( UNION ( SELECTCOLUMNS(TABLE1,"COLUMN",TABLE1[COLUMN]), SELECTCOLUMNS(TABLE2,"COLUMN",TABLE2[COLUMN]) ) )After giving the code, need to manage relationships using all queries by Many to Many Cardinality.
If this post helps, then please consider Accept it as the solution to help the others to find it more quickly.
Regards,
Vineetha.
Hi Eads,
Found the solution for merging columns from different queries having different number of columns.
Below is the code:
TABLE = DISTINCT(
UNION ( SELECTCOLUMNS(TABLE1,"COLUMN",TABLE1[COLUMN]),
SELECTCOLUMNS(TABLE2,"COLUMN",TABLE2[COLUMN])
)
)After giving the code, need to manage relationships using all queries by Many to Many Cardinality.
If this post helps, then please consider Accept it as the solution to help the others to find it more quickly.
Regards,
Vineetha.
Hi Anonymous ,
I am glad that you found the right solution for your question.
Best Regards,
Eads
If my previous post helps, then please consider Accept it as the solution to help the others to find it more quickly.