Forum Discussion
UNION returns strange dates
- 1 year ago
thank you for your replies, I found the 'issue'!
It was a column which for whatever reason was misplaced compared to the same column in the other table.
In Power Query they were properly ordered, but after loading one of them went off one position! I tried to reorder that column in Power Query by sending it to the beginning (in both tables), didn't work! I had to get rid of it and after that, the dates look fine.
Thanks again for your replies!
Hi Sab
I tested a similar setup on my end, and the UNION function worked correctly without any date issues. If you're still experiencing strange dates, I recommend checking the data types of both columns in Power Query to ensure they’re explicitly set as Date/Time. Sometimes, mismatches in data types can cause unexpected results in DAX functions.
If everything seems correct with the data types and the issue persists, try refreshing the query or clearing any applied transformations that might impact the date format.
The pbix with the test is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.