March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
Looks like UNION DAX has a bug, its not removing the duplicate data, I tried to do union of two table by using the option to create a new table based on UNION DAX.
Union generally deletes duplicate data between two tables and union all keeps even the duplicate data. Here in Power BI desktop, I don't see the UNION is removing the duplicate data.
Can you guys please confirm, if it is a bug? If it is a bug then when can we expect the resolution?
Thanks & Regards,
Abdul
Solved! Go to Solution.
Hi @AbdulAzad ,
Accoridng to the official document , UNION() returns a table that contains all the rows from each of the two table expressions.
IF you want to union and remove the duplicate data, you can use “distinct() ”to achieve it. The following is an example::
The final output is shown below: UNION() vs DISTINCT(UNION())
newtable1 = UNION('Table','Table (2)') vs newtable2 = DISTINCT(UNION('Table','Table (2)'))
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @AbdulAzad ,
Accoridng to the official document , UNION() returns a table that contains all the rows from each of the two table expressions.
IF you want to union and remove the duplicate data, you can use “distinct() ”to achieve it. The following is an example::
The final output is shown below: UNION() vs DISTINCT(UNION())
newtable1 = UNION('Table','Table (2)') vs newtable2 = DISTINCT(UNION('Table','Table (2)'))
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It's not a bug.
"A table that contains all the rows from each of the two table expressions"
"Duplicate rows are retained"
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |