zapppsr
Board Regular
- Joined
- Aug 19, 2010
- Messages
- 189
Hi.
I know how to make queries and during the process unpivot columns from a table, either on Power Query on Excel or Power BI.
I have a table result from a query, with only one column: "Regional". I added several other columns using "Add new column", so the new columns are not from the query, but created in Power Pivot or in the Model Editor on Power BI.
Now, my goal is to unpivot the table above, with 3 columns: "Regional", "indicator", "Value".
The problem is that in the Model Editor in Power BI or in Power Pivot we don't have the unpivot option. So I was considering the following options:
1) - Find a way to use the Query Editor and get the full table (Not the query table because that one just have to column "Regional" and not the other.
2) - Find a way to create a Table (using the create table option) and in the process unpivot the data from the original table.
3) - Not elegant way: Plot the data using a Pivot table and make a query on that data, and then unpivot. (Shame on me).
Do you have any other options to help me?
I know how to make queries and during the process unpivot columns from a table, either on Power Query on Excel or Power BI.
I have a table result from a query, with only one column: "Regional". I added several other columns using "Add new column", so the new columns are not from the query, but created in Power Pivot or in the Model Editor on Power BI.
Now, my goal is to unpivot the table above, with 3 columns: "Regional", "indicator", "Value".
The problem is that in the Model Editor in Power BI or in Power Pivot we don't have the unpivot option. So I was considering the following options:
1) - Find a way to use the Query Editor and get the full table (Not the query table because that one just have to column "Regional" and not the other.
2) - Find a way to create a Table (using the create table option) and in the process unpivot the data from the original table.
3) - Not elegant way: Plot the data using a Pivot table and make a query on that data, and then unpivot. (Shame on me).
Do you have any other options to help me?