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
jeggen
Helper II
Helper II

Visualization Suggestion - Category Changes Over Time

I am looking for advice on how to best analyze/visualize the following data. Each year customers are grouped into one of 5 categories, including a non-customer category. The goal is to quantify shifts between categories over years. Below is sample data:

 

Customer IDFY LastFY-1FY-2
123Category 1Category 1Category 1
234Category 4Category 2non-customer
345Category 2non-customerCategory 1
456Category 4Category 3Category 3
567non-customerCategory 3Category 3
678Category 1non-customernon-customer

 

One option I thought of would be to build additional columns to quantify the direction for each customer from one-year to the next, but this already would have 25(?) options since each of the five categories could land in the five categories the subsequent year. Does anyone have a suggestion of how I might (a) show generalized trends/flow between categories from one year to the next? (b) Organize the data to get a simple table that might provide an output like:

FYnon-customerCategory 1Category 2Category 3Category 4
FY Last12102
FY-121120
FY-222020

 

One last note - these are progressive categories, so ideally customers would move into category 1 and towards category 4 over time.

1 ACCEPTED SOLUTION
jeggen
Helper II
Helper II

Actually just noticed PowerBI has a Sankey visualizaiton which is exactly what I was looking for!

https://powerbi.microsoft.com/en-us/blog/visual-awesomeness-unlocked-sankey-diagram/

View solution in original post

4 REPLIES 4
jeggen
Helper II
Helper II

Actually just noticed PowerBI has a Sankey visualizaiton which is exactly what I was looking for!

https://powerbi.microsoft.com/en-us/blog/visual-awesomeness-unlocked-sankey-diagram/

Hi @jeggen ,

 

It's a good visualization but there is a specific modelling that you need to do in order to get the nodes in the correct order.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @jeggen ,

 

For this you need to unpivot your data and then you can you can use the columns on a matrix visualization:

MFelix_0-1717424267689.pngMFelix_1-1717424278657.png

 

MFelix_2-1717424296104.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thanks, this works for the matrix visualization which is helpful. I'm wondering if there's a visualization to do something like this, at least from one year to the next even if multiple years becomes too complicated.

https://public.tableau.com/views/SimpleSankey/Sankey?:embed=y&:display_count=no&:showTabs=y&:showViz...

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.