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.
I have some data that needed sorting in the same cell.
Current data
ABC019, ABC018, ABC010
Expected results
ABC010, ABC018, ABC019
Solved! Go to Solution.
Hi,@Aden123
I am glad to help you.
According to your description, actually you want to sort data in ascending order in same cell?
If I understand you correctly, then you can refer to my solution.
1.Import the data into Power BI Desktop and click Transform data to open Power Query Edit.
2.Choose Custom Column in Power Query Edit.
3.Enter M language formulas to create new columns
let
Source = [Current data],
SplitColumn = Text.Split(Source, ","),
SortedList = List.Sort(SplitColumn, Order.Ascending),
CombinedText = Text.Combine(SortedList, ",")
in
CombinedText
Result :
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,@Aden123
I am glad to help you.
According to your description, actually you want to sort data in ascending order in same cell?
If I understand you correctly, then you can refer to my solution.
1.Import the data into Power BI Desktop and click Transform data to open Power Query Edit.
2.Choose Custom Column in Power Query Edit.
3.Enter M language formulas to create new columns
let
Source = [Current data],
SplitColumn = Text.Split(Source, ","),
SortedList = List.Sort(SplitColumn, Order.Ascending),
CombinedText = Text.Combine(SortedList, ",")
in
CombinedText
Result :
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 7 |