Forum Discussion

Cmpunk's avatar
Cmpunk
Copper Contributor
Jun 12, 2022

Power Query Help

I have following data

 

Legal NameFacilityLIQ Origination DateLIQ Maturity DateAdjusted Origination DateAdjusted Maturity Date

MM12/28/20178/31/20228/31/20228/31/2022
KO23/5/201412/31/20236/30/20206/30/2021
KO23/5/201412/31/20236/30/202112/31/2023
MD312/29/202112/29/202612/29/202612/29/2026

 

However I want result in following format

 

Desired Output

Legal NameFacilityLIQ Origination DateLIQ Maturity DateAdjusted Origination DateAdjusted Maturity Date

MM12/28/20178/31/20222/28/20178/31/2022
KO23/5/201412/31/20233/5/20146/30/2020
KO23/5/201412/31/20236/30/20206/30/2021
KO23/5/201412/31/20236/30/202112/31/2023
MD312/29/202112/29/202612/29/202112/29/2026

 

or 

There is some error in my working . I am attaching my working .Could anyone advise how to get desired result?

    • Cmpunk's avatar
      Cmpunk
      Copper 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_Eekelen's avatar
        Riny_van_Eekelen
        Platinum 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.

         

Resources