I'd like to create a sankey diagram using the information from the table below. I'd like for the source location (Previous Location) to have the same number of destinations (New Location) in the diagram, so that there is just a one to one flow for each row. The issue I am having is that when I create this chart in power bi, it creates multiple layers in power bi, where one location will go into another location which would go into another location...i.e Berlin to London to Hong Kong. This is not what I'd like. Any advice on how I could create a sankey diagram where one point just flows to one other point? I don't mind which program this is done in.
How do I create a Sankey diagram in power bi or any other program which just shows the transfers of locations for employees from a company?
34 views Asked by Jed Nkansa-Yeboah At
1
There are 1 answers
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in POWERBI
- Does Power BI provide an OOTB Geographical Dimension Table
- How to change point color in Deneb while having lines be the same color as the legend
- SQL analytics endpoint and Semantic model not being created in MS Fabric Lakehouse
- Parse Dynamic Power BI table with selenium
- ALL() and REMOVEFILTER() Don't Work Correctly on My Report
- Market share growth versus last month, last year
- DAX query: trying to count unique entries that match two different criteria
- Azure Analysis Service, with an on prem gateway, in vnet
- Dax Many to Many Measure with Calender Date filters
- How to install NPGSQL and connect a PostgreSQL database to Power BI?
- Calculate average duration from text in power bi
- Power-BI / Dax: Count emails multiple times in a function based on the same dimension (#Order)
- Unable to filter in power bi dax query
- how can i obtain earliest day and lastest date per row/item number using Power Bi?
- Slicer Filtering on Drill-through Field Not Working
Related Questions in SANKEY-DIAGRAM
- Replicate Sankey diagram in ggplot2
- Adjust labels on individual nodes in Sankey diagram using ggsankey
- How to deal with nodes with no outgoing and incoming flows but show them in Sankey diagram with plotly module in Python?
- Sankey Diagram in R & plotly: unnexpected connections
- Nodes of a Sankey diagram in R don't group together
- Plotting Sankey Plot based on Temporal Sequence in R
- Python Plotly Sankey diagram not showing up
- how to join dataflows in ggalluvial at a node
- How do I create a Sankey diagram in power bi or any other program which just shows the transfers of locations for employees from a company?
- Network D3 Sankey Diagrams link dataframe creation: bypassing nodes with NA, and automatic correction of values?
- Making data format for sankey plot in R
- My Sankey Diagram( Has zero value but appear that it has)
- How do `prior` and `connect` work in `matplotlib.sankey.Sankey.add`?
- How to get rid of kinks in the bands between nodes? SankeyNetwork, NetworkD3 in R
- How to get full range of scale_fill_viridis for sankey plot when using factor
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

I'm not convinced a Sankey diagram would even work like that just by design. You'd be expecting multiple copies of nodes then which would confuse the plot to the point it may not be readable (if I understand your request).
Maybe a circular flow digram is better? Basically a Sankey in a circle.
Theres a python library that does it as below
You can simplify the
row_namesandcol_namesto be only cities that feature in theFromandTocolumns respectively, but I just did a rough version. You could also automate this matrix being built from the input.