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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
refint650
Helper III
Helper III

Remove duplicates from union

Hello 

 

I'm doing custom table with select columns in dax calculations and when creating relationship sales, products , order gives me many-many options , so how can i check and remove duplicates from custom table. so relationship will many to one between fact & custom dim.

 

Table = 

Var _Sales = selectcolumns(Actuals,"ID", ]Activity_Id],"Name", ]Activity_Name])

Var _Products = selectcolumns(Actuals,"ID", ]Activity_Id],"Name", ]Activity_Name])

Var _Orders = selectcolumns(Actuals,"ID", ]Activity_Id],"Name", ]Activity_Name])

Var _Vunion = distinct (union( _Sales, _Products,_Orders)

return  _Vunion 

thanks

vs

 

 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @refint650 

 

I have created some new data and the attempt with your formula was successful. What other problems did you encounter? Is it convenient to provide some of the example data? Sensitive data can be removed in advance.

vzhangti_0-1658994171350.png

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @refint650 

 

I have created some new data and the attempt with your formula was successful. What other problems did you encounter? Is it convenient to provide some of the example data? Sensitive data can be removed in advance.

vzhangti_0-1658994171350.png

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

MahyarTF
Memorable Member
Memorable Member

Hi,

Please have a look to the below post, it seems the common issue :

https://community.powerbi.com/t5/Desktop/DISTINCT-UNION-amp-Summarized-Combined/m-p/895815#M429434

Mahyartf

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors