Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
10 years ago
Solved

Merge 2 rows in one row

I would like to know, if there is possibility in Power Query to combine two rows in one. I have been investigating this and I could not find the solution.
What I am trying to do is in the attached print screen. I have in first row in each date column actual or budget type of values. If I try to do a unpivot other columns I lost the type (actual, budget). So I have been thinking that I could combine both rows in one and than just do the replace action on the column.

If anybody has any idea how to solve this without touching the Excel file.

Thank you

Borut

Issue

  • hohlick's avatar
    hohlick
    10 years ago
    1. Transpose table
    2. Merge two first columns with delimeter
    3. Transpose again
    4. Promote headers
    5. Unpivot columns
    6. Split columns by the same delimeter
    7. Pivot by second part (where parameters is)
    8. Njoy

15 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Sorry for broken link:

       

      201520152015201520152015
      January            ActualFebruary       ActualMarch        ActualYTD                  ActualYTD               BudgetBudget vs
      Actual

       

       I want to combine first and second row.

      • hohlick's avatar
        hohlick
        Continued Contributor
        1. Transpose table
        2. Merge two first columns with delimeter
        3. Transpose again
        4. Promote headers
        5. Unpivot columns
        6. Split columns by the same delimeter
        7. Pivot by second part (where parameters is)
        8. Njoy