Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Dublicates

Hello guys, I have been faced with the following problem today. The problem seems to me to be quite trivial, but I was quite upset today. I have a bigger table with e.g. different names like "A,B,C,D,E,....". Each of these names has different monthly events. I just want to transform this data set within Power BI, in form of a table, so that I can show the duplicates (e.g. only one A,B,C,...) that had the last event. Everything else should be hidden. These data must not be deleted, because I use them for another visual. If someone has tips I would be very happy! Greetings ABBA!

  • gpiero's avatar
    gpiero
    5 years ago

    @Abba123

    Hi

    on page 3 you will find both solution proposed on this post.

    First visual based on Table3 that contains all your data with the solution by @mahoneypat

    Last visual on page 3 based on Table by

    Table = SUMMARIZE(Table3; Table3[Notification.Code];" a"; MAX(Table3[Date]))
    from Table3.
    If both could satisfy your requirement please mark as solution.
    Regards

13 Replies

  • gpiero's avatar
    gpiero
    Skilled Sharer

    Anonymous 

    Hi,

    could you share some rows of data just as a sample?

    Regards

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi gpiero and other friends,

       

      just for example:

      DateNotification.Code
      01.10.20A
      05.01.20B
      04.07.20A
      15.09.20C
      02.05.20D
      06.06.20A
      21.09.20B
      19.02.20B
      03.03.20D
      01.09.20C

       

      And i want this table for example in a table visual in Power BI, but just want to see the Notification.Codes with the latest date, without deleting the others.

       

      Thank you!

    • Anonymous's avatar
      Anonymous
      Not applicable

      gpiero ,

       

      this should be the solution in the visual:

       

      DateNotification.Code
      01.10.20A
      21.09.20B
      15.09.20C
      02.05.20D
      • mahoneypat's avatar
        mahoneypat
        Microsoft Employee

        Just make a table visual with the Code and Date columns, and for the Date column choose "Latest" as the aggregation (see pic).

         

        Regards,

        Pat