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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
temptester
Frequent Visitor

Create the data table for sankey diagram

I have a table like below and trying to create a sankey diagram using the free version.

 

CustomerStatusDateapplicatoin noproductBeforeAfter
1in1/1/20241CNoD
1in1/2/20242DCNo
2out1/3/20243JNoC
2out1/4/20244CJM
2out1/5/20245MCNo
3in1/6/20246CNoL
4in1/7/20247LNoC
4in1/8/20248CLNo


In the sankey, I want to show the before->product->after sequence for each customer where product = "C" (highlighted). So its like souce-Before, middle-C, destination-After. Can you please help me create the data table for this. Thanks.

 

5 REPLIES 5
temptester
Frequent Visitor

Sorry for the delayed response. I think the previous image wasn't clear. My actual dataset is too large and the names are long. So printing it in the middle is a bit cluttered. Can we make a similar Sankey?

 

image001.png

temptester
Frequent Visitor

Thanks for this. It works. But below is what I exactly wanted. I hope you can understand the drawing.

CustomerBeforeProductAfter
1RCNo
2ACJ
3NoCD
4ACJ
5BCK
6BCK

Screenshot 2025-02-14 103708.png

temptester
Frequent Visitor

Thanks for this. Yes, it works. But what exactly I wanted is the below. I just did a drawing. Hope you can understand it.

CustomerBeforeProductAfter
1RCNo
2ACJ
3NoCD
4ACJ
5BCK
6BCK
    

 

Screenshot 2025-02-14 103708.png

Anonymous
Not applicable

Hi @temptester ,

 

According to the field information provided by Sankey visual, the best way to show this effect is to enable data link labels.

vkongfanfmsft_1-1739524627956.png

 

vkongfanfmsft_0-1739524612363.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.

 

Anonymous
Not applicable

Hi @temptester ,

 

You need to put the product field into source labels, and then turn on date link labels in the data format.

vkongfanfmsft_0-1739433177560.png

 

vkongfanfmsft_1-1739432376502.png

vkongfanfmsft_2-1739432409651.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.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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