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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
goalie_
Helper III
Helper III

Sankey diagram node

Is there a way to lock the position of nodes in a Sankey Diagram once they've been moved? Everytime I manipulate the data to fix a label, create a new connection, the nodes move into a random(?) order. I'm not sure how that's determined by the program.

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @goalie_ ,

 

You can sort these nodes by [Index] column.

 

First create the index column in Power Query.
1. Group by Destination column.

 

vkkfmsft_0-1653959653818.pngvkkfmsft_2-1653959724815.png

 

2. Add Index column.

vkkfmsft_1-1653959693520.png

 

3. Expand all columns.

 

vkkfmsft_3-1653959754662.png

 

Then select the [Destination] column and sort by [Index] column.

 

vkkfmsft_4-1653959797708.pngvkkfmsft_5-1653959860780.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
cass1215
Regular Visitor

Hi may I know if there is a function that we can sort the sankey chart node based on the value in Descending order?

v-kkf-msft
Community Support
Community Support

Hi @goalie_ ,

 

You can sort these nodes by [Index] column.

 

First create the index column in Power Query.
1. Group by Destination column.

 

vkkfmsft_0-1653959653818.pngvkkfmsft_2-1653959724815.png

 

2. Add Index column.

vkkfmsft_1-1653959693520.png

 

3. Expand all columns.

 

vkkfmsft_3-1653959754662.png

 

Then select the [Destination] column and sort by [Index] column.

 

vkkfmsft_4-1653959797708.pngvkkfmsft_5-1653959860780.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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.