cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhorvati Frequent Visitor
Frequent Visitor

How Remove Duplicates Using SELECTCOLUMNS

How would I modify this formula to remove duplicates for Material Number?

 

New Table Name = SELECTCOLUMNS(Existing Table Name,  "Material Number",[Material Number], "Material Name",[Material Name])

 

I have an existing table and I am creating a new table from 3 fields in the existing table.   I think SELECTCOLUMNS is the DAX formula I should be using since these are all just text fields, but I want to remove duplicates for Material Number.

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft Phil_Seamark
Microsoft

Re: How Remove Duplicates Using SELECTCOLUMNS

Hi @bhorvati

 

One way is just to wrap a DISTINCT around it

 

 

New Table Name = 
DISTINCT(
SELECTCOLUMNS(Existing Table Name, "Material Number",[Material Number], "Material Name",[Material Name])
)

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Microsoft Phil_Seamark
Microsoft

Re: How Remove Duplicates Using SELECTCOLUMNS

Hi @bhorvati

 

One way is just to wrap a DISTINCT around it

 

 

New Table Name = 
DISTINCT(
SELECTCOLUMNS(Existing Table Name, "Material Number",[Material Number], "Material Name",[Material Name])
)

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors
Top Kudoed Authors