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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Creating a summarized table to remove duplicates

Im looking to create a new table and to remove duplicate entries where it is zero but where there is not duplicate to still leave the empty field in the table based on email address. 

 

As desribed in the table below

 

Current data  
Address NumberAlpha NameElectornic Address
1ABCABC@GMAIL.COM
1ABC 
2cdeCDE@GMAIL.COM
3fgh 
3fghFGH@GMAIL.COM
4hij 
   
New Data  
Address NumberAlpha NameElectornic Address
1ABCABC@GMAIL.COM
2cdeCDE@GMAIL.COM
3fghFGH@GMAIL.COM
4hij 
1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi @Anonymous ,

You can try using SUMMARIZE:

SUMMARIZE('Table (7)','Table (7)'[Address Number],'Table (7)'[Alpha Name],"Email",MAX('Table (7)'[Electornic Address]))

ValtteriN_0-1652944600647.png

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/







Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
CNENFRNL
Community Champion
Community Champion

Resort to PQ for such data extraction/data shaping tasks; so that you can easily handle such a case,

 

Address Number Alpha Name Electornic Address
1 ABC ABC@GMAIL.COM
1 ABC  
1 ABC another@hotmail.com
2 cde CDE@GMAIL.COM
3 fgh  
3 fgh FGH@GMAIL.COM
4 hij  

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUXJ0coaQDu6+jp4+es7+vkqxOshyaNzEvPySjNQih4z8ktzEzBy95PxcsAojoFxySiqQdHZxRTPMGCialp4BMwzBdXP3QFNqAhTNyMwCK40FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Address Number" = _t, #"Alpha Name" = _t, #"Electornic Address" = _t]),

    #"Filtered Email" = Table.Group(Source, List.FirstN(Table.ColumnNames(Source),2), {"Grp", each Table.SelectRows(_, (r) => Text.Length(r[Electornic Address]) > 0)}),
    #"Expanded Aggr" = Table.ExpandTableColumn(#"Filtered Email", "Grp", {"Electornic Address"})
in
    #"Expanded Aggr"

 

CNENFRNL_0-1652948862737.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

ValtteriN
Super User
Super User

Hi @Anonymous ,

You can try using SUMMARIZE:

SUMMARIZE('Table (7)','Table (7)'[Address Number],'Table (7)'[Alpha Name],"Email",MAX('Table (7)'[Electornic Address]))

ValtteriN_0-1652944600647.png

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/







Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.