Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
| 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 | 2019 |
Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | |
Actual | Actual | Actual | Actual | Actual | Actual | Actual | Actual | Actual | Actual | Actual | Forecast | |
Sales | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
Cost | -50 | -50 | -50 | -50 | -50 | -50 | -50 | -50 | -50 | -50 | -50 | -50 |
I have a data set that looks like the above.
I want to create header names that concatenate the three first rows and then unpivot the data, to get something like this:
2019-Jan-Actual | Sales | 100 |
2019-Jan-Actual | Cost | -50 |
2019-Feb-Actual | Sales | 100 |
2019-Feb-Actual | Cost | -50 |
2019-Mar-Actual | Sales | 100 |
2019-Mar-Actual | Cost | -50 |
If you could help that would be great. Thanks
Solved! Go to Solution.
Please see the attached file with all the steps included.
Personally I would skip the last two steps "Unpivoted Columns" and "Merged Columns" as its easier to work with this format but I'm sure that you have valid reasons.
Please see the attached file with all the steps included.
Personally I would skip the last two steps "Unpivoted Columns" and "Merged Columns" as its easier to work with this format but I'm sure that you have valid reasons.
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 |
---|---|
9 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
12 | |
11 | |
9 | |
6 | |
6 |