March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I would like to flatten my data to just 1 row per Load Number. But I have to make a new column for Stopoff and for Final Delivery locations. Stopoff is notated by a D in Stop Type, and a Stop ID of 1 (sometimes there are multiple Stopoffs, with Stop IDs increasing in increments of 1 - ex. 1, 2, 3, 4). Final Delivery is always notated by a D in Stop Type and a Stop ID of 999.
I have shown below a simplified example. I will have to scale up the solution to make new columns for all relevant information of each location.
Thank you for any help! First time posting...if there's a better way to ask questions going forward, please advise.
Aaron
Load Number | Stop Type | Stop ID | Location Type |
963345 | P | 0 | Shipper |
963345 | D | 1 | Stopoff |
963345 | D | 999 | Final Delivery |
963346 | P | 0 | Shipper |
963346 | D | 1 | Stopoff |
963346 | D | 999 | Final Delivery |
963347 | P | 0 | Shipper |
963347 | D | 999 | Final Delivery |
Solved! Go to Solution.
@anelson,
Please check if Merge2 table returns your expected result in the following PBIX file.
https://1drv.ms/u/s!AhsotbnGu1NolAADVkhaKAdrTRpu
Regards,
Lydia
@anelson,
Please check if Merge2 table returns your expected result in the following PBIX file.
https://1drv.ms/u/s!AhsotbnGu1NolAADVkhaKAdrTRpu
Regards,
Lydia
Yes! That's exactly what I need it to do.
For the record, this is what Lydia did:
Thank you Lydia!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
168 | |
116 | |
63 | |
57 | |
50 |