Forum Discussion

SumairChughtai's avatar
SumairChughtai
Copper Contributor
Jul 23, 2021
Solved

Merging Rows in Power Query

Hi,
 
Need to learn how to merge a row in data table when a record is broken into two rows
 
Also the record is in the incorrect column.
 
There are a number of more columns so the transpose option is not feasible
 
I have attached the excel file for the problem.
 
Kindly look at it and suggest a solution.
 
Regards,
Sumair

28 Replies

  • Yea_So's avatar
    Yea_So
    Bronze Contributor

    SumairChughtai

     

    When you say:

    Need to learn how to merge a row in data table when a record is broken into two rows

    I don't see that in your sample file

    (looking at Transaction number and Reference fields/columns),

    so in what context does the above statement refer to?

     

     cheers

    • SumairChughtai's avatar
      SumairChughtai
      Copper Contributor

      Yea_So 

      I would like to merge them as in the attached excel file.

      The red font indicates what the data is in its original form.

      The yellow highlighted is how I want the data to end up as one complete record.

      Thank you for your interest in the problem.

      Regards,

      Sumair

       

      • Lorenzo's avatar
        Lorenzo
        Silver Contributor

        SumairChughtai 

        The kind of issue that definitively requires > 1 example... Put together something (attached) with what you provided + added a couple of extra broken records

         

        NB: When a [Transaction Number] is broken as 2 records (what you gave us with: when a record is broken into two rows)
        - The 2 records must be consecutive in the Source Table/file (otherwise I don't see how you're going to resolve this...)
        - The 2nd partial record is "added" to the 1st available location in the previous record

    • SumairChughtai's avatar
      SumairChughtai
      Copper Contributor

      Riny_van_Eekelen 

      I would like to merge them as in the attached excel file.

      The red font indicates what the data is in its original form.

      The yellow highlighted is how I want the data to end up as one complete record.

      Thank you for your interest in the problem.

      Regards,

      Sumair

       

Resources