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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
GianlucaM
Helper II
Helper II

remove duplicates over 2 column dax

Hi 

I need to create a Dim table based on fact, and I need to avoid to use power query.

What i'm trying to get it's a DAX that allows me to select some columns from a table, and gives me back just the unique value. 
Something you can easilly do by selecting the two column and type "remove duplicates" in power query.


Doing it in DAX would let me have a lighter file
Here an example
From

ABC
Red2big
Red2Small
Jellow 1Big

  

I need to obtain
AB

AB
Red2
Jellow 1
1 ACCEPTED SOLUTION
barritown
Super User
Super User

Hi @GianlucaM,

This line should help you to achieve the required outcome:

New Table = SUMMARIZE ( 'Table', 'Table'[A], 'Table'[B] )

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

View solution in original post

1 REPLY 1
barritown
Super User
Super User

Hi @GianlucaM,

This line should help you to achieve the required outcome:

New Table = SUMMARIZE ( 'Table', 'Table'[A], 'Table'[B] )

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.