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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Sankey DAX Programming

I am trying to follow the source of what Class an FR had on their first year and I am trying to trace it through the next five years in a Sankey. 

 

For example, FR#213 started in Class A in the first year, but then had Class C their second year, then Class A their third year, then Class D their fourth year, then Class A their fifth year. 

 

I was trying to do a switch true statement for the value that this visual requires, but ran into some number format issue with True/False. 

 

Please see the image. Thank you for helping solve this and your contribution to the community!!!

 

All Reps  Year Year2 Year3 Year4Year5Class

FR#21321331213321213A
FR#219219431321431431B
FR#32132121321931321C
FR#43143132143121331D
FR#0313121931219219E

 

kbig02_0-1612823862186.png

 

1 REPLY 1
lbendlin
Super User
Super User

"For example, FR#213 started in Class A in the first year, but then had Class C their second year, then Class A their third year, then Class D their fourth year, then Class A their fifth year. "

 

Please create a data table that reflects this statement. Your data table seems to have some reverse lookup logic that is really hard to follw, and not conducive for a Sankey. Once you place the data in the right format the Sankey will solve itself.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.