Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
pey
Frequent Visitor

Rearrange data table

Hi,

 

Is it possible to rearrange the subject in a customized manner apart from just via values/alphabetical order?

For instance, I would like Export of goods & Services to be the top line, followed by Export of goods, Export of services etc.

 

If such function is not available, I was thinking of creating another column in my table data and assigned each subject with a number in the order that I would like it to be presented and then sort it.

 

OR just simply add a numerical number in front of my subject (e.g. 1.0 Export of goods and services, 2.0 Export of goods and services) and then sort it in ascending order...

 

 

pey_0-1630245362974.png

 

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@pey 

you can try to create a order table, subject column order by order column. create relationship with your fact or dim table. Use the subject column from the new table in the visual.

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

v-kkf-msft
Community Support
Community Support

Hi @pey ,

 

You can add a conditional column in Power Query Editor to do a custom sort on the data, like this.

 

image.png

 

Then sort the Subject column by Order column.

 

vkkfmsft_0-1630478079562.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @pey ,

 

You can add a conditional column in Power Query Editor to do a custom sort on the data, like this.

 

image.png

 

Then sort the Subject column by Order column.

 

vkkfmsft_0-1630478079562.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ryan_mayu
Super User
Super User

@pey 

you can try to create a order table, subject column order by order column. create relationship with your fact or dim table. Use the subject column from the new table in the visual.

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.