Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I'm sure this has been asked, but I'm still struggling to make the data pivot in the way that I want it to.
I have a query connected to Power BI with data pulling back by week since 2016, like the following:
Year Week Sales Inventory
2016 1 100 200
2016 2 104 208
....
2017 1 132 294
2017 2 88 105
........
I'd like to be able to pivot the table to line up like this:
Week 2016 Sales 2017 Sales 2016 Inventory 2017 Inventory
1 100 132 200 294
2 104 88 208 105
Anyone have advice?
Solved! Go to Solution.
In the Query Editor...
1) Unpivot Sales & Inventory
2) Merge Year and Atrribute
3) Pivot the Merged Column (Don't Aggregate)
As shown here...
Hope this helps!
In the Query Editor...
1) Unpivot Sales & Inventory
2) Merge Year and Atrribute
3) Pivot the Merged Column (Don't Aggregate)
As shown here...
Hope this helps!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |