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

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!

1 ACCEPTED SOLUTION

@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

If I can...

View solution in original post

13 REPLIES 13
gpiero
Skilled Sharer
Skilled Sharer

@Anonymous 

Hi,

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

Regards

If I can...
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

@Anonymous 

Group By could help you?

https://1drv.ms/u/s!Ah7_1Sua__g-62ICDv3FeHAtDVTK?e=GkDPQX 

If I can...
Anonymous
Not applicable

@gpiero Hey,

thank you! But this just works with a smaller table like the first one I send. With a larger table like i send at least, it doestn work. Do you have any ideas to solve this?

Regards,

Abba!

@Anonymous 

 

Hi

 

I put your data, all your data

pic1.png

and I have got the following

 

pict2.png

 

No data has been deleted, but it is my original criteria. There are many solutions. My suggestion is only one of many.

Please see page 3

 

https://1drv.ms/u/s!Ah7_1Sua__g-62ICDv3FeHAtDVTK?e=1eoyMv 

 

Regards

If I can...
Anonymous
Not applicable

Hey @gpiero ,

thank you for you help!!

It seems like it works 👌

But can you shortly explain how you did it (maybe for dummies 😁)

Thank you very much!!!!!! ❤️

@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

If I can...

@Anonymous 

 

sorry, here the right link

 

https://1drv.ms/u/s!Ah7_1Sua__g-62ICDv3FeHAtDVTK?e=QyaQ2w 

If I can...

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

 

mahoneypat_0-1603034108553.png

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

He @mahoneypat ,

 

thank you for your help! This one works fine with the example, but if you have a bigger table like mine in reallife, its not possible. For example with this one:

DateNotification.Codeederggrewgqregqergqergeqrgeqgqrgqrgresume date
01.10.20A56724824824824824824824824824804.02.20
05.01.20B^345624824824824824824824824824805.02.20
04.07.20A24724824824824824824824824824806.02.20
15.09.20C24824925025125225325425525625707.02.20
02.05.20D24925025125225325425525625725808.02.20
06.06.20A25025125225325425525625725825909.02.20
21.09.20B25125225325425525625725825926010.02.20
19.02.20B25225325425525625725825926026111.02.20
03.03.20D25325425525625725825926026126212.02.20
01.09.20C25425525625725825926026126226313.02.20

 

This is also not the real table, but if you try it works with a table like this, it also should work with mine.

Thank you!

 

Abba!

Which columns are you using from your example table?  If just the first two columns, the approach should work.  What should the output look like from your example data?  What are you seeing?

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Hey @mahoneypat ,

i want to use all the columns in the table. But I only want to see 1x A,B,C,D,...

How can I solve this without taking out columns or just using 2 columns?

Thank you!

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!

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.