Forum Discussion

juddin's avatar
juddin
New Member
1 year ago
Solved

students migration by multi-level sankey graph

I have shared a sample data of students major migration. How can I organize this given data and create sankey graph on power Bi? seeking your help. thank you.

IDTERMMajor
12020Literature
12021History
12022History
12023Biology
22021History
22022History
22023History
22024Literature
32022Biology
32023Biology
32024Biology
42023Biology
42024Math
52024Math
62022Math
62023Biology
62024Computer
72024Computer
82020Literature
82021History
82022History
82023Biology
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi juddin ,

     

    When creating a Sankey diagram in Power BI, you need to prepare a data table that contains these fields. For example, if you are tracking students' major migration, your data table might need to contain the students' IDs, their original majors (source), the majors they transferred into (destination), and the number of students who migrated in each semester (weight).


    I did the following with the data you provided and create below measure, then created a Sankey chart based on it.

    Migration Weight = COUNTROWS('Test')

     

    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.

6 Replies

    • juddin's avatar
      juddin
      New Member

      yes. I have student account. I want to create multi-level sankey graph

    • juddin's avatar
      juddin
      New Member

      Thank you. But this is not right tutorial, I am expecting 

  • MNedix's avatar
    MNedix
    Icon for Solution Sage rankSolution Sage

    Then just watch that YT video and you should be alright.

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi juddin ,

     

    When creating a Sankey diagram in Power BI, you need to prepare a data table that contains these fields. For example, if you are tracking students' major migration, your data table might need to contain the students' IDs, their original majors (source), the majors they transferred into (destination), and the number of students who migrated in each semester (weight).


    I did the following with the data you provided and create below measure, then created a Sankey chart based on it.

    Migration Weight = COUNTROWS('Test')

     

    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.

    • juddin's avatar
      juddin
      New Member

      Thank you. It seems colse to my expectation. How did you sort out Destination column. My original dataset is too big. It is not possible to do manually. In addition, Blue line at right side showing no major.