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 / how to sort a list whe...
Power Automate
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

 

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,577 Super User 2026 Season 1 on at

    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

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

  • BCBuizer Profile Picture
    22,577 Super User 2026 Season 1 on at

    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
    {
            "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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard