Forum Discussion

Trump's avatar
Trump
New Member
1 year ago

Sankey in Power BI

How can I create a SANKEY in POwer BI with below data?  I tried a lot with Add-in but the problem is as follow;

The SOURCE and TARGET is same hence grafik is not coming clearly. For example A. 

Thank you in advance for assistance. 

Source_NEWTarget_NEWVolume
AOther385246807
BM41479873
CN200607
DO104966797
EA3328827
FP1888163
GQ171801
HR6810
IE2594
JS431748761
KT177149735
 U199606477
 V222063219

5 Replies

  • Hi Trump 

    Creating a Sankey chart in Power BI can be tricky when the source and target are the same, but it is possible with some adjustments.

     

    To avoid confusion when the source and target are the same, you can add a prefix or suffix to distinguish them. For example, you can create new columns in your data:

    Source_Modified = "Source: " & [Source_NEW]
    Target_Modified = "Target: " & [Target_NEW]

     

    After adding columns- your data table look like this..

    Then,
    1. Add the Sankey chart visual to your report canvas.
    2. Drag the Source_Modified column to the Source field.
    3. Drag the Target_Modified column to the Destination field.
    4. Drag the Volume_delivered column to the Weight field.

    After this your sankey visual like this.

    By following the above process, you should be able to create a clear and informative Sankey chart in Power BI, even with identical source and target values. Let me know if it works. Thanks

  • Hi Trump ,

    To create a Sankey chart in Power BI with the provided data, where the source (Source_NEW) and target (Target_NEW) columns may contain duplicates or identical values (e.g., "A"), you need to prepare the data and configure the visual correctly.

    First, ensure the data is organized with source, target, and volume columns in a single table. If source and target values are identical, you can add a prefix or suffix to distinguish them, such as "Source: A" and "Target: A." This helps avoid visual clutter in the chart.

     

    Sankey in Power BI

    Once the data is prepared, install the Sankey visual from the Power BI visuals store. In the chart, drag the source column to the Source field, the target column to the Destination field, and the volume column to the Weight field. Adjust the formatting options, like node separation, to enhance chart clarity.

     

     

    • Trump's avatar
      Trump
      New Member

      Bibiano_Geraldo  Thank you for response, but still its not solving the issue. Can ellaborate and share table to undersatdn this in detail?

       

      • Rupak_bi's avatar
        Rupak_bi
        Icon for Super User rankSuper User

        please share sample data with exact reprsentation of your original dataset structure. source and target can be same at different rows if you have three or more level of hierarchy.