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:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 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,899 Super User 2026 Season 2 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

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
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard