Forum Discussion

temptester's avatar
temptester
Frequent Visitor
1 year ago

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

  • Anonymous's avatar
    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.

     

    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.

  • temptester's avatar
    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
        

     

    • Anonymous's avatar
      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.

       

       

      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.

       

  • temptester's avatar
    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

  • temptester's avatar
    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?