Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I'm having trouble figuring this out. Any help is appreciated, thank you.
I have a dataset, sampled below:
DealID | # | DealDate | ExitDate |
910-09T | 1 | ||
202-76T | 1 | 2/22/2013 | |
849-35T | 1 | ||
362-32T | 1 | 1/30/2015 | 1/30/2015 |
531-76T | 1 | 8/13/2015 | 8/13/2015 |
606-25T | 1 | 11/9/2015 | 11/9/2015 |
1709-89T | 1 | 4/30/2020 |
The task is to, for each # (which represents company), take the earliest DealDate, and Latest ExitDate, and turn it into one row. Deal ID isn't needed, just there to represet each time a deal was made in database.
So for this company, company 1, i would like for it to have only (First Deal) 2/22/2013 and (Lateset Exit)11/9/2015.
Solved! Go to Solution.
Hi Senad,
1. Let's call your current table Detailed. We can start by creating a mini table called Summary that includes the distinct Company IDs:
Hi Senad,
1. Let's call your current table Detailed. We can start by creating a mini table called Summary that includes the distinct Company IDs: