Forum Discussion
rock_cloud
2 years agoFrequent Visitor
Structuring Pre-aggregated Data
Hi, I'm wondering whether anyone can help me as I'm quite stuck. I don't have direct access to my data source for use in Power BI, so my data is pre-aggregated before I import it. My data con...
- Anonymous2 years ago
Hi rock_cloud ,
According to your description, you can use the unpivot function in power query. The exact steps are:
1. Click Transform data to open the power query interface
2. Select the Department1 Department2 columns, right click and select the unpivot columns option.At this time there will be a total, department name and department id for the columns of the table
So you can filter by date, department name or total.
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Ashish_Mathur
Super User
2 years agoHi,
In the Query Editor,
- Remove the total column from each table
- Append all the tables
- Select the first column, right click and select "Unpivot Other Columns"
Hope this helps.