Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

DAX Union creating duplicates

I have 2 tables of the same columns and column names.  Individually, they have distinct values for a certain ID column. 

When I join the 2 tables via

 

UNION(EqmtDT, EqmtDT_H)

 

, the ID column now shows no distinct values.  Why did this happen?

dpibarker_0-1690378697236.png

 

 

 

5 REPLIES 5
Anonymous
Not applicable

I figured out my problem. I did have dupes in the separate tables. 

pceglie
Resolver I
Resolver I

Hi, can you share pbix file?

 

--

PC

DataVitalizer
Super User
Super User

Hi @Anonymous 

Your tables might have IDs in commun thats why the distinct count of IDs does not eq to total rows.


Did it work ? 👌 Mark it as a solution to help spreading knowledge 👉 A kudos would be appreciated

Anonymous
Not applicable

There are none in common, I exported to excel and checked for duplicates and there were none.

Could you share the pbix file?


Did it work ? 👌 Mark it as a solution to help spreading knowledge 👉 A kudos would be appreciated

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.