Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello,
I was wondering if anyone knows how to preserve the sort order of a source when importing data from a SQL query. There is no order by defined, but the way the data is returned in regards to the sorting, can that be retained? If not will the addition of Order By in the SQL Query help? If that again is not possible, is the only way to do this is by sorting by different column names, or by defining a sort value column?
Thank You
Solved! Go to Solution.
hi, @nirvana_moksh
It will keep the same sort order with SQL query code.
If there is order by defined, it will keep the same sort order too.
Best regards,
Lin
hi, @nirvana_moksh
It will keep the same sort order with SQL query code.
If there is order by defined, it will keep the same sort order too.
Best regards,
Lin
Hi have the same problem but it think the problem is more related with the visualization table.
I have a view in SQL server, the view has a specif sorting (ORDER BY), when I "get the data" and go to "Trasform Data" view, the data looks OK, but when I load the data to a "Table", I'm missing the sort of my view.
Is this a bug of visualization table?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.