Forum Discussion
Anonymous
4 years agoNot applicable
Solved: Sankey Diagram Data Preparation
Hello everyone,
I need your help in prepping the data to chart a Sankey Diagram. The Dataset I have currently looks like the following,
| User | Year | Brand |
| A | 2021 | Apple |
| A | 2020 | Apple |
| B | 2021 | Samsung |
| B | 2020 | Apple |
The final table should look a little like this.
| User | 2020 | 2021 |
| A | Apple | Apple |
| B | Apple | Samsung |
Any Idea on how to do this? I know I have to pivot the data but I am lost. Thank you!
Hi,
In the Query Editor, go to Transform > Pivot Columns. Here's the screenshot
3 Replies
- Ashish_Mathur
Super User
Hi,
In the Query Editor, go to Transform > Pivot Columns. Here's the screenshot
- AnonymousNot applicable
Thank you so much. This helped
- Ashish_Mathur
Super User
Hi,
If my previous reply helped, pleasemark it as Answer.