Forum Discussion
How do I transform this table?
- 3 years ago
Thanks Greg, your answer inspired me to try something:
1) convert all fields to text type
2) concatenate each month with their respective item
3) Unpivot by these concatenated columns
4) delete the month/items columns
5) Split the concatenated column
6) Profit π
Thanks Greg, we did this!
GabrielDC Understood but that's quite possibly the worst formatting for an Excel spreadsheet to ingest into Power BI possible. If you had this:
| Combined | 7/31/2022 | 8/31/2022 |
|
usa |
5 | 2 |
| japan | 10 | 3 |
| emea | 6 | 5 |
Then, yes, you could select "combined" column, right-click and select "Unpivot other columns". But, you don't have that.
Thanks Greg, your answer inspired me to try something:
1) convert all fields to text type
2) concatenate each month with their respective item
3) Unpivot by these concatenated columns
4) delete the month/items columns
5) Split the concatenated column
6) Profit π
Thanks Greg, we did this!
- Greg_Deckler3 years ago
Community Champion
GabrielDC Very nice!