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

Create new table based on distinct column from another table

Hello,

My table follows this structure:

Name   CODE   DateLab
JohnWWW09/04/2021  1
JohnWWW09/04/2021  1
JohnWWW09/04/2021  1
LisaZZZ11/09/2021  9
LisaZZZ11/09/2021  9
EricQQQ01/01/2021  5
KimberDDD12/12/2021  8
KimberDDD12/12/2021  8

I would like to create a calculated table that shows all columns from the original table, but only distinct rows based on the CODE column.

My expected result would be a new table like this:

Name   CODE  Date           Lab
JohnWWW09/04/2021  1
LisaZZZ11/09/2021  9
EricQQQ01/01/2021  5
KimberDDD12/12/2021  8

 

Can someone help me?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

New Table >

Newtable = SUMMARIZE('Table1','Table1'[Name],'Table1'[CODE   ],'Table1'[Date],'Table1'[Lab])

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

New Table >

Newtable = SUMMARIZE('Table1','Table1'[Name],'Table1'[CODE   ],'Table1'[Date],'Table1'[Lab])
Anonymous
Not applicable

That was exactly it! Thanks 🙂

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.