Link to home
Start Free TrialLog in
Avatar of William Peck
William PeckFlag for United States of America

asked on

How to create (and prepare the data for) a Sankey diagram

I deal in the basics of an ERP system, we take in data, and produce reports, lists, lists, lists. Mostly operational type reports. Every now and again we will throw up a pie chart or bar chart and everyone is like blown away because it’s colorful … User generated image

The Dean now wants a Sankey diagram for changes to Academic Majors – so this is a flow of initial selection of major to final graduation major. Most will stick with their original choice.


I see on Google it’s a flow style chart (https://developers.google.com/chart/interactive/docs/gallery/sankey), like the classic steam engine measurement, and even Napoleon’s invasion of Russia (https://en.wikipedia.org/wiki/Sankey_diagram).


I’m looking for tips on how to produce this. Excel looks like it’s up to the task (https://mychartguide.com/how-to-draw-sankey-diagram-in-excel/?unapproved=1719&moderation-hash=f3ea3edb766fc2dd17971a864b195541#comment-1719).

If Excel is up to the task, then my challenge is preparing the data. Right now I have an audit trail of prior major, newly selected major, and Student Id. So at the core it’s three fields: Student Id, Old Major, newly selected major, plus of course Race-Ethn and gender.


I have no idea if this data structure will work, but I’m thinking the software could wind it’s way through Student Ids and Majors for a flow line, showing original majors on the left and final majors on the right.


Most people actually stick with their original major. Some however, change 2-4 times.


So just looking for some tips on software and data prep

Avatar of William Peck
William Peck
Flag of United States of America image

ASKER

I tried doing a Sankey chart using Power-user add-in l Smart tools for PowerPoint, Excel and Word (powerusersoftwares.com) , but it's just not working.

here's my raw data ... can I get this to a Sankey data flow?
 
Student IdMajor FromMajor To
245091EOEEOE
245097HHSHHS
245103FPSFPS
245103FPSFPS
245109EASEAS
245109EASEAS
245115SMOSMO
245127EMEEME
245151HEGFEC
245151HEGHEG
245157EMEEME
245163ENAENA
245169ESEESE
245175SQESQE
245181FECFEC
245181FECHHS
245187FPSFPS
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent, thank you! I did get some samples to work, Power-user add-on is snazzy and easy.

I put the data in Pivot tables and that worked great ... sample here:
 
EASECEEEEEGEEMEENA
EAS


3651
ECE

28

EEE28
9

EGE



4
EME2
176

ENA

14


So I was happy to get it done technically ... the numbers above are real, so they're really too small to gauge anything, and the numbers actually give you more of a picture than the Sankey (imo)

User generated image
As far as the Race-Ethn, in the USA there are 5 "races":
- Black/Afr-American
- White (technically this is not a race, it's Caucasian which cover some people of color [Yes]
- Asian
- Native Hawaiian/Other Pacific Islander
- Native American / Alaska Native

Doesn't really account for the rest of the world ...

But thank you!