Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Remove Duplicates but with certain criteria

Hi

 

Need Help.!

 

Item   Size

a          1

a          2

a          3

b          1

b          1

b          2

 

Want to remove item duplication but keep with hightest size like below.

currently when i remove duplication in query it remain lower size..

 

[Desiral Table]

Item   Size

a          3

b          2

 

  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi Anonymous ,

     

    I'd like to suggest you write a calculated table with summarize function to remove duplicate records.

    New Table =
    SUMMARIZE ( Table, [Item], "Max Size", MAX ( Table[Size] ) )
    

     

    Regards,

    Xiaoxin Sheng

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

     

    Just create a Measure

     

    Measure = MAX(Size)

     

    and pull Item and the above measure.

     

    Thanks

    Raj

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    I'd like to suggest you write a calculated table with summarize function to remove duplicate records.

    New Table =
    SUMMARIZE ( Table, [Item], "Max Size", MAX ( Table[Size] ) )
    

     

    Regards,

    Xiaoxin Sheng