Forum Discussion
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_NEW | Target_NEW | Volume |
| A | Other | 385246807 |
| B | M | 41479873 |
| C | N | 200607 |
| D | O | 104966797 |
| E | A | 3328827 |
| F | P | 1888163 |
| G | Q | 171801 |
| H | R | 6810 |
| I | E | 2594 |
| J | S | 431748761 |
| K | T | 177149735 |
| U | 199606477 | |
| V | 222063219 |
5 Replies
- suparnababu8
Super User
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
- Bibiano_Geraldo
Super User
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.
- TrumpNew 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
Super 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.