Data flow using Sankey diagram


Hi team, I have a field in my redshift table called status, where it shows all the status that a ride underwent, I want to show the flow of this status from beginning to end, I choose Sankey diagram to implement this, I created other field called “next_status” which is lead(status) over (order by date). I added “status” as source and “next_status” as destination to the sankey diagram, it is giving me the diagram as follows:
.

I want to show the flow of status, but is showing in a diff way, can you please help me, can I show the flow of status; my expected status flow:
booked without provider → manual assigned → tp accepted → tp rejected → tp removed → manual assigned → tp accepted → unknown → tp removed

Please help me how to do this.

Hi @Sainath
could you share a sample file or show the data for the current visual?
BR

1 Like


Hi Erik, this is the data im using, with source as assignment_action and destination as next_assignment_action, here my goal is to show the flow of the assignment action, so I created next_assignmnet_action using lead(status) over (order by date). my ultimate goal is to show the flow(exact flow in the assignment action field) but im ended up getting the above diagram. please help me.