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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

how to sort a list when uploading to excel

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

I created a flow button in Power BI reports to take the filtered data and upload it to an excel.

However, I would like for the flow to loop through the data and upload it in order of the setter#

sophiatheresa74_0-1716378984254.png

This is the flow

sophiatheresa74_1-1716379047674.png

 

 

I have the same question (0)
  • BCBuizer Profile Picture
    22,492 Super User 2025 Season 2 on at
    Re: how to sort a list when uploading to excel

    Hi @sophiatheresa74 ,

     

    For this you can use a Sort function (Reference guide for expression functions - Azure Logic Apps | Microsoft Learn) in an expression for the input of the Apply to each loop:

     

    sort(
     TriggerBody()['entity_Power...'],
     'Setter#'
    )

    Please replace entity_Power and Setter# with the identifier with the correct terms.

  • CU13081633-2 Profile Picture
    on at
    Re: how to sort a list when uploading to excel

    @BCBuizer I do not know how to implement this in my flow

  • BCBuizer Profile Picture
    22,492 Super User 2025 Season 2 on at
    Re: how to sort a list when uploading to excel

    Hi @sophiatheresa74 ,

     

    Can you please share the trigger outputs from a flow run? With that I will be able to give you an exact expression and show you where to apply it.

  • CU13081633-2 Profile Picture
    on at
    Re: how to sort a list when uploading to excel
    {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240424",
            "FlockNo": "412-1",
            "FlkAge": "45",
            "Setter#": "1"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "412-1",
            "FlkAge": "45",
            "Setter#": "1"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "412-2",
            "FlkAge": "45",
            "Setter#": "1"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "412-2",
            "FlkAge": "45",
            "Setter#": "2"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "412-3",
            "FlkAge": "39",
            "Setter#": "2"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "412-3",
            "FlkAge": "39",
            "Setter#": "3"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "412-4",
            "FlkAge": "39",
            "Setter#": "3"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "408-1",
            "FlkAge": "38",
            "Setter#": "4"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "412-4",
            "FlkAge": "39",
            "Setter#": "4"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "408-1",
            "FlkAge": "38",
            "Setter#": "5"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "408-2",
            "FlkAge": "38",
            "Setter#": "5"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "405-1",
            "FlkAge": "36",
            "Setter#": "6"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "408-2",
            "FlkAge": "38",
            "Setter#": "6"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "405-1",
            "FlkAge": "36",
            "Setter#": "7"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "405-2",
            "FlkAge": "36",
            "Setter#": "7"
        },
        {
            "EggRecdDt": "240423",
            "OffLoadDt1": "240427",
            "FlockNo": "405-2",
            "FlkAge": "36",
            "Setter#": "8"
        }

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard