cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Problem with duplicates

 

Hello, I need some help with data transformation. I have table like below:table.PNG

 

And I need to have all data in one row for cases with new o revisit not blank. This is hard becouse there could be many revisits with te same id... My idea was to find first case assigned (or data suffucient or case done) date which is bigger than new case date  for each id, but i do not know how to implement that in power BI (i've tried vlookup bu it doesnt work becouse of duplicates)

 

Please help!

5 REPLIES 5
Highlighted
Super User IV
Super User IV

Re: Problem with duplicates

@ImkeF might have some Power Query magic that could help with this. Can you provide your expected output from the data presented, I'm not sure I'm clear on exactly what you are going for. 


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




Highlighted
Frequent Visitor

Re: Problem with duplicates

Hi,

I've extracted one of problematic cases in excel, this smaller table is my expected output.output.PNG

Highlighted
Community Support
Community Support

Re: Problem with duplicates

Hi @yakm,

 

It will be help if you share some sample data for test.

 

You can direct paste sample data here with table formula or upload sample file to onedrive and share link here.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Problem with duplicates

sCRM_IDNew_or_revisitIndexNew caseRevisitCase assignedData sufficientCase done
17.KR.784811New2403.08.2018 11:12    
17.KR.784811 25   03.08.2018 11:24 
17.KR.784811 26  03.08.2018 11:24  
17.KR.784811 31    03.08.2018 13:14
17.KR.784811 95   08.08.2018 08:54 
17.KR.784811 96  08.08.2018 08:54  
17.KR.784811Revisit97 08.08.2018 08:54   
17.KR.784811 100    08.08.2018 09:19
17.KR.784811 114   09.08.2018 04:50 
17.KR.784811 115  09.08.2018 04:50  
17.KR.784811Revisit116 09.08.2018 04:50   
17.KR.784811 122    09.08.2018 07:42
17.KR.784811Revisit3327 20.12.2018 07:56   
17.KR.784811 3328  20.12.2018 08:02  
17.KR.784811 3329   20.12.2018 08:02 
17.KR.784811 3351    20.12.2018 11:31
17.KR.784811 3352    20.12.2018 11:39
17.KR.784811Revisit3615 09.01.2019 09:14   
17.KR.784811 3616   09.01.2019 09:16 
17.KR.784811 3617  09.01.2019 09:16  
17.KR.784811 3621    09.01.2019 09:40

 

is this ok?

Highlighted
Frequent Visitor

Re: Problem with duplicates

Hi, any ideas?

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors