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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Swilam
Regular Visitor

Sankey Chart Customization

Hey all, Im using The Sankey Chart from microsoft  and i want to change the order of nodes but i dont know how. Is it even possible to do so?

Swilam_0-1724320736311.png

Swilam_1-1724320753234.png

 

 

 

 

 



Thanks for in advance any help or advice.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Swilam ,

 

You can create a computed column to assign a sort weight to each node for the purpose of changing the order. You can try formula like below:

NodeSortOrder = 
VAR NodeName = 'Table'[Destination]
RETURN
    SWITCH(
        NodeName,
        "Quotes", 1,
        "Draft", 2,
        "Sent", 3,
        "Closed", 4,
        "Buffer", 5,
        "Invoiced", 6,
        "Paid", 7,
        "Open", 8,
        9 
    )

vkongfanfmsft_0-1724390534942.png

Befor:

vkongfanfmsft_1-1724390551589.png

After:

vkongfanfmsft_2-1724390578250.png

 

Best Regards,
Adamk Kong

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @Swilam ,

 

You can create a computed column to assign a sort weight to each node for the purpose of changing the order. You can try formula like below:

NodeSortOrder = 
VAR NodeName = 'Table'[Destination]
RETURN
    SWITCH(
        NodeName,
        "Quotes", 1,
        "Draft", 2,
        "Sent", 3,
        "Closed", 4,
        "Buffer", 5,
        "Invoiced", 6,
        "Paid", 7,
        "Open", 8,
        9 
    )

vkongfanfmsft_0-1724390534942.png

Befor:

vkongfanfmsft_1-1724390551589.png

After:

vkongfanfmsft_2-1724390578250.png

 

Best Regards,
Adamk Kong

 

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

 

 

But if you are using sortorder column in the weight, then how you are using the amount column?

rajendraongole1
Super User
Super User

Hi @Swilam -Sankey visual from Microsoft, the ability to manually reorder nodes is limited. The nodes are typically ordered based on the flow values or the order in which they appear in your data. 

by modifying your data model, adding sorting columns, or exploring custom visuals, you can influence the order of nodes to some extent. If the default Sankey chart doesn’t meet your needs check on custom visual.

Ref:

Solved: Sankey not creating a single node for to and from - Microsoft Fabric Community

Solved: How to use Plotly to create sankey chart - Microsoft Fabric Community

Preparing a data model for Sankey Charts in Power BI (youtube.com)

How to change the location of a node label in a Sankey diagram for Microsoft Power BI? (youtube.com)

 

Hope it helps.





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

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors