Forum Discussion

rohanraher's avatar
rohanraher
Regular Visitor
2 years ago
Solved

Transform columns without a qualitative column

Hi community,

 

I am trying to transform a table using Power Query but not able to achieve the desired result. I am posting an example of the data set below for referral, can anyone please help me out?

 

Current structure - 

FY 23 Backlog AFY 23 Revenue AFY 23 Pipeline ABusiness A TotalFY 23 Backlog BFY 23 Revenue BFY 23 Pipeline BBusiness B Total
1000200030006000100200300600

 

Required structure - 

Business (Only Business Name from the table)Revenue TypeValue
ABacklog1000
ARevenue2000
APipeline3000
BBacklog100
BRevenue200
BPipeline300

 

Many thanks!

  • Select all your columns and under transform, unpivot columns.

    Then in your new attribute column, filter out all the rows that contain "Total". Then you can split the attribute column to get your remaining info such as a business name column and so on.

1 Reply

  • Syk's avatar
    Syk
    Resident Rockstar

    Select all your columns and under transform, unpivot columns.

    Then in your new attribute column, filter out all the rows that contain "Total". Then you can split the attribute column to get your remaining info such as a business name column and so on.