web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unpivot excel data in ...
Power Automate
Answered

Unpivot excel data in Power Automate

(1) ShareShare
ReportReport
Posted on by 15

Hi, I am a brand new user and am looking to translate an excel file like this:

kdicamillo_0-1697662360477.png

 

To an unpivoted csv file that will look like this:

kdicamillo_1-1697662423913.png

I have about 25 areas served in the actual data, but am using 2 here as an example.

 

Thanks in advance!

Categories:
  • sandeepstw Profile Picture
    312 Moderator on at

    Hi There,

     

    To transform data from an Excel file to an unpivoted CSV file, here is expected solution -

     

    Open the Excel file in question. Go to the "Data" tab. Select "Get & Transform Data" and then choose "From Table/Range."

     

    If prompted, convert your data range to a table. In the Power Query Editor, select the columns representing the areas served. Right-click and choose "Unpivot Columns."

     

    Rename the resulting columns to desired names, e.g., "Area Served" and "Value."

     

    Close and load the transformed data back to Excel. Then, "File" > "Save As" and choose CSV as the format.

     

    After these steps, you'll have an unpivoted CSV file with the desired format. Adjust accordingly based on your Excel version or if using Excel Online.

     

    Please give kudos and mark as solution if it helps.  

      

    Thanks, 

    Sandeep Mishra 

  • kdicamillo Profile Picture
    15 on at

    Hi Sandeep, thanks for your reply. When I click on the Data tab, all I see for "Get & Transform Data" is the following:

    kdicamillo_0-1698236329305.png

    There is no option to choose "From Table/Range."

     

    Late last night I finally figured out how to do what I want in Power Automate. I will post a solution later, but what you are suggesting is much easier so I would like to see if I can get it to work.

     

    Thanks,

    Kim

     

  • sandeepstw Profile Picture
    312 Moderator on at

    Hi, 

     

    What I suggest is using Excel desktop version, you might be using excel online. 

     

    Please mark as solution if it works. 

     

    Thanks,

    Sandeep Mishra

  • kdicamillo Profile Picture
    15 on at

    Hi Sandeep, I tried your solution using the Excel desktop version and it works very well, thank you. However, I don't think I should mark it as a solution, because it still involves manual intervention. I did come up with a solution in Power Automate which I will post when it is fully complete. 

    Thank you for your suggestion which works great for a one time manual pivot!

    Best,

    Kim

  • Verified answer
    kdicamillo Profile Picture
    15 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard