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 / Overriding column dyna...
Power Automate
Unanswered

Overriding column dynamization

(0) ShareShare
ReportReport
Posted on by 21

 

Good Morning,

I would like to know if there is any way to do the following with power automate.

When an excel is left in one drive, I pick up the rows from this excel. For example it has this format:

DateCategoryProbe1Probe2Probe3
08/06/2021Apple110g120g130g
07/06/2021Orange120g130g140g

 

I want to transform the data to have this format (like overriding column dynamization in power bi)

 

DateCategoryAtributeValue
08/06/2021AppleProbe1110g
08/06/2021AppleProbe2120g
08/06/2021AppleProbe3130g
07/06/2021OrangeProbe1120g
07/06/2021OrangeProbe2130g
07/06/2021OrangeProbe3140g

 

Once i have this format achieved, I want to insert each record in a Sharepoint list. It is necessary to get this formatting done because the number of probes can be very high. 

Any solution?

Thank you,

Greetings

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @ilanas why do you want to format before the data is pushed to SharePoint, if you want to show/view data in alphabetical order, just create a view in SharePoint with your custom order.

     

    If you still want to order then you can, use Run Script action which will have a script to format excel as per your need and then you dump in SharePoint.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up

  • ilanas Profile Picture
    21 on at

    Hello @jinivthakkar , The problem is that the original excel have more than 300 columns of probe1, probe2, probe3,probe 4... It excedeed the limit of columns of sharepoint. Moreover, I prefer only have 4-5 colums in sharepoint list to have all much clear. I don't understand what are you saying me with this "If you still want to order then you can, use Run Script action which will have a script to format excel as per your need and then you dump in SharePoint." I don't want to sort the rows, 

    just divide the data inside of it. Can you help me?
  • jinivthakkar Profile Picture
    4,187 on at

    @ilanas we have an action, see below

    jinivthakkar_0-1623167320811.png

    If you know how to write a script which will get you only the data that you need, then you can just call the script and you will have your data

    I really don't know how to write a script, else I would have definitely helped you.

    Just see this and try

     

    https://docs.microsoft.com/en-us/office/dev/scripts/develop/power-automate-integration

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • neerajsu Profile Picture
    70 on at

    To add to what @jinivthakkar said. 

    Scripts are basically typescript code that you create in one drive and can also attach to excel files if you need. They can directly access data from excel sheet and transform and respond with whatever you need.

    If you know a little bit of javascript programming (typescript is just a strongly typed programming language over javascript), here's a couple of youtube videos you can see to understand how it works. What you require can easily be done, if you do it via script rather than via power automate actions.

     

    https://www.youtube.com/watch?v=il7YS7Dx228

    https://www.youtube.com/watch?v=jBO1nGLeTQs

     

  • ilanas Profile Picture
    21 on at

    Thanks @neerajsu ,

    But the problem is that if the excel is in the one drive, the excel online don't have power query so i can't use de unpivot function, no?

  • neerajsu Profile Picture
    70 on at

    There is no concept of excel online or power query here. All of this is done using code.

     

    The excel script you write will do the unpivoting and will return a json in this format to Power automate.

    [
     {
     "date": "08/06/2021",
     "category": "Apple",
     "attribute": "prob1",
     "value": "112g"
     },
     {
     "date": "08/06/2021",
     "category": "Apple",
     "attribute": "prob1",
     "value": "112g"
     },
     {
     "date": "08/06/2021",
     "category": "Apple",
     "attribute": "prob2",
     "value": "130g"
     },
     {
     "date": "08/06/2021",
     "category": "Orange",
     "attribute": "probe1",
     "value": "110g"
     }
    ]

     

    Go through the videos I referenced. It will make more sense for you.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard