Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
hyattt
New Member

Multi level sankey chart over time

Hello all, I have looked at the posts that are out there for multi-level sankey and I am still having issues getting my sankey to work. Below is the data that shows the counts of student majors as they progress over 5 years. The objective is to have a pillar for each year that shows the majors. MAJR1 is year 1, MAJR2 is year 2 and so on... I am starting with only one major EESC, and showing the progression through the 5 years.

 

hyattt_0-1651171106292.png

I created the following in Modeling for the first two years as my initial attempt at this...

Table =
UNION(
SUMMARIZE(
SELECTCOLUMNS('Sheet1',"Source",'Sheet1'[MAJR1],"Target",'Sheet1'[MAJR2]),
[Source],
[Target],
"StuCnt", SUM(Sheet1[STUCNT])
),
SUMMARIZE(
SELECTCOLUMNS('Sheet1',"Source",'Sheet1'[MAJR2],"Target",'Sheet1'[MAJR3]),
[Source],
[Target],
"StuCnt", SUM(Sheet1[STUCNT])
)
)

 

This is what the above produced... Not exactly what I was looking for.

hyattt_1-1651171521088.png

 

3 REPLIES 3
hyattt
New Member

Thanks for the links, I had looked at the second one but the first one made me wonder why they used Y and N in the first pillar and Yes and No in the second. Which led me to think I needed to put number infront of my values. So all the values in MAJR1 have a 1 in front and MAJR2 have a 2 infront and so on. I think the pillar methodology doesn't work when you have the same values in Source and Target. I get the following now which is correct but I would like to have the header display without the numbers in front.

hyattt_0-1651507070088.png

 

Anonymous
Not applicable

Hi @hyattt ,

In order to provide you a suitable solution, could you please share some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? By the way, are the numbers (1, 2, 3, 4, 5) in front of MAJR1 and MAJR2 in the data itself, or are they added later? It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Anonymous
Not applicable

Hi  @hyattt ,

Please review the following links, hope the solution in these threads can help you resolve the problem.

Multi-level sankey query - creating supporting visuals

yingyinr_1-1651485015649.png

How to create multi-level sankey diagram. Sankey visual 3.0.3

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.