Forum Discussion
Cmpunk
Jun 12, 2022Copper Contributor
Power Query Help
I have following data
Legal NameFacilityLIQ Origination DateLIQ Maturity DateAdjusted Origination DateAdjusted Maturity Date
MM | 1 | 2/28/2017 | 8/31/2022 | 8/31/2022 | 8/31/2022 |
KO | 2 | 3/5/2014 | 12/31/2023 | 6/30/2020 | 6/30/2021 |
KO | 2 | 3/5/2014 | 12/31/2023 | 6/30/2021 | 12/31/2023 |
MD | 3 | 12/29/2021 | 12/29/2026 | 12/29/2026 | 12/29/2026 |
However I want result in following format
Desired Output
Legal NameFacilityLIQ Origination DateLIQ Maturity DateAdjusted Origination DateAdjusted Maturity Date
MM | 1 | 2/28/2017 | 8/31/2022 | 2/28/2017 | 8/31/2022 |
KO | 2 | 3/5/2014 | 12/31/2023 | 3/5/2014 | 6/30/2020 |
KO | 2 | 3/5/2014 | 12/31/2023 | 6/30/2020 | 6/30/2021 |
KO | 2 | 3/5/2014 | 12/31/2023 | 6/30/2021 | 12/31/2023 |
MD | 3 | 12/29/2021 | 12/29/2026 | 12/29/2021 | 12/29/2026 |
or
There is some error in my working . I am attaching my working .Could anyone advise how to get desired result?
- Riny_van_EekelenPlatinum Contributor
Cmpunk Have a look at the attached file. I added another query Merge2 that seems to produce what you asked for.
- CmpunkCopper Contributor
Riny_van_Eekelen Thank you for your response. I tried your solution on my sample data unfortunately it is not giving desired result. Could you advise? I am attaching file for your reference.
- Riny_van_EekelenPlatinum Contributor
Cmpunk But you didn't use the same query. I note you don't have the "Remove Duplicates" step, for instance. May I suggest you copy your "real" data into the relevant tables in the file I sent. Not changing any table or column names. Don't have time to that myself right now, sorry.