gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
I have in column X values separated by ; How to convert column X to list where each…
- User
I have in column X values separated by ; How to convert column X to list where each values is given in separate row in Power Query?
- Assistant
To convert the values in column X to a list where each value is given in a separate row using Power Query, you can follow these steps:
- Open Power Query Editor by selecting the column containing the values.
- Select the column header, right-click, and choose "Split Column" -> "By Delimiter".
- In the "Split Column by Delimiter" dialog box, choose the delimiter that separates the values (in this case, ";") and click "OK".
- This will split the values in the column based on the delimiter, creating multiple columns.
- Select all the newly created columns with the split values (e.g., Column X.1, Column X.2, Column X.3, etc.).
- Go to the "Home" tab and click on "Unpivot Columns" under the "Transform" group.
- This will transform the split columns into rows, each containing a separate value.
- At this point, you can remove any unnecessary columns.
- Finally, click "Close & Apply" to load the transformed data into your worksheet as a list with each value in a separate row.
Now, your column X has been converted into a list where each value is given in a separate row using Power Query.