Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi guys, I have a list like the picture below.
If I use List.Sort, the result is like below
Is there any way to correctly sort this list into {Column1, Column2, ..., Column10, Column11} without turning it into Table and sort based on another column?
Solved! Go to Solution.
Hi @mpi_gov_vn,
You can provide a function as the 2nd argument of List.Sort, that transforms each value into the value to sort by.
In your case this should work:
List.Sort( YourList, each Number.From( Text.AfterDelimiter( _, "Column" ) ) )
Hi @mpi_gov_vn,
You can provide a function as the 2nd argument of List.Sort, that transforms each value into the value to sort by.
In your case this should work:
List.Sort( YourList, each Number.From( Text.AfterDelimiter( _, "Column" ) ) )
Check out the July 2025 Power BI update to learn about new features.