Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
_Abhilash
Frequent Visitor

Convert Actual and Budget columns from rows into columns

Hello everyone,

 

 I have below  excel table

_Abhilash_0-1652067711306.png

 

Need to convert table into. All the actuals values in one column and budget in one column

Operating DivisionActualBudget
A10090
B10099
C8186
D10093
E9583
F9199
G8592
A9297
B9584
C9092
D9987
E8194
F9199
G9294
A8986
B83100
C9295
D8289
E8184
F100100
G8382
A83100
B9282
C8997
D8982
E8291
F8782
G91100

 

1 ACCEPTED SOLUTION
TheoC
Super User
Super User

Hi @_Abhilash 

 

If you go into Power Query, you can achieve this by selecting all of the columns (except for Operating Division), and then right clicking and pressing "Unpivot Columns". Here is a link as well to further explain: https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f5882...

 

I just realised with your data it's a little different as you also have each month in the column header. I've cleaned your data up and added a PBIX to the attached to get the output looking like this:

 

TheoC_0-1652070082075.png

 

Hope this helps!

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

3 REPLIES 3
TheoC
Super User
Super User

Hi @_Abhilash 

 

If you go into Power Query, you can achieve this by selecting all of the columns (except for Operating Division), and then right clicking and pressing "Unpivot Columns". Here is a link as well to further explain: https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f5882...

 

I just realised with your data it's a little different as you also have each month in the column header. I've cleaned your data up and added a PBIX to the attached to get the output looking like this:

 

TheoC_1-1652070130332.png

 

 

Hope this helps!

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

jaipal
Resolver III
Resolver III

@_Abhilash go to Power Query, select Actual columns  and select Unpivot Columns

jaipal_0-1652068824100.png

Do it for Budget Columns as well, and Rename Attribute, Values 

TheoC
Super User
Super User

Hi @_Abhilash 

 

If you go into Power Query, you can achieve this by selecting all of the columns (except for Operating Division), and then right clicking and pressing "Unpivot Columns". Here is a link as well to further explain: https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f5882...

 

I just realised with your data it's a little different as you also have each month in the column header. I've cleaned your data up and added a PBIX to the attached to get the output looking like this:

 

TheoC_0-1652070082075.png

 

Hope this helps!

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.