Forum Discussion
DAX UNION does not work as expected
- 5 years ago
Hi Anonymous thank you very much for your suggection. It was sorted. UNION did not work for me so I found the example in internet and it solved my problem
instead of using just Union (table1, table2,table3, table4)
I used Union(table21, table2,table3, SELECTCOLUMNS ( Table4, "Column1", Table4[Column1], "Column2", Table4[Column2], "Column3", Table4[Column3] ) and it works!!!!
)
Ok, I'm just asking because I've been doing some DAX for 5 years now and I can say that every person that I've seen used Summarize inside Calculated table didn't need to use it and it just took additional unnecessary memory inside their model. I'm not saying you are not using it properly, I'm just questioning the idea behind it.
Can you share with us a simple pbix file with data and visual you want to create?
Thank you for your suggestion, I don't know how i can avoid this step? Definitely I'd like to make the model using the best options but in internet I cannot find anything better.
I will create a simple it will take time 🙂 Thank you.
- m3tr01d5 years ago
Continued Contributor
Exactly, of course, we can answer your original question related to Union but this won't solve the future issues you'll encounter if your Data model is not designed with best practices 🙂