Skip to main content

Notifications

Community site session details

Community site session details

Session Id : wqba3/9+y/yIKfboY4v/Bf
Power Apps - Power Query
Suggested answer

Power Apps Dataflow - result in wrong column order

Like (0) ShareShare
ReportReport
Posted on 14 Feb 2025 23:28:53 by
I am using a Dataflow in Power Apps to combine a number of imported Excel spreadsheets, using Merge Queries as New to end up with a combined table at the end with columns from each source file, all in the correct order. After publishing and refreshing, instead of my original order, the resulting table has all of the columns arranged in alphabetical order by column name.
 
Is there any way to ensure that the table I am left with at the end of the merge comes out of the Dataflow looking like the version I've meticulously arranged within the query? I can't see why this is happening and it will create so much more work to manually rearrange the columns after extraction to a spreadsheet. 
 
Any help or advice at all is appreciated, thanks in advance.
Categories:
  • Suggested answer
    Ravi-Prajapati Profile Picture
    409 on 15 Feb 2025 at 07:41:56
    Power Apps Dataflow - result in wrong column order

    Yes, Power Apps Dataflows tend to reorder columns alphabetically upon loading data into Dataverse or other destinations. Unfortunately, this is an automatic behavior and not explicitly documented in Microsoft's official resources. However, there are a few ways you can work around this issue to retain your desired column order.

    Workarounds to Maintain Column Order in Dataflows:

    1. Explicitly Reorder Columns at the End of Your Query

    After performing the merge, add a "Reorder Columns" step in Power Query before saving the Dataflow:

    • In Power Query Editor, select Transform → Reorder Columns.
    • Manually drag and arrange the columns into the desired order.
    • Click Close & Apply to ensure this step is explicitly recorded.

    This should help enforce the correct order before publishing.


    2. Use a Custom Column Order in Power Automate (If Exporting)

    If you're exporting the data (e.g., to Excel), Power Automate can be used to fetch the records and arrange the columns manually in the desired order before writing them to an output.


    3. Recreate the Column Order in Dataverse (If Applicable)

    If you are loading data into a Dataverse table, and you control its schema, you can:

    • Manually create the table in Dataverse with the exact column order you need before importing.
    • Map the Dataflow fields correctly to the corresponding Dataverse fields.

    Dataverse enforces its own schema ordering when data is loaded, so this might help.


    4. Use a Power BI Dataflow Instead (If Feasible)

    Power BI Dataflows do not automatically reorder columns in the same way as Power Apps Dataflows. If your workflow allows, you could:

    • Create a Power BI Dataflow.
    • Load the structured data into Dataverse or another destination with your preferred order.

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,342 Most Valuable Professional

Leaderboard

Featured topics