Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Unpivoting Data Problem

I have a data set with columns: Income Statement Type, Product Type, "January 2017", "Feb 2017",.... "March 2019" .  This lets me see Sales, COGS, and Op Ex by product for these time periods.  

 

The data set is built in excel via OLAP connection to a cube. I then connect Powerbi to that excel file. When i import in the data, I have a column for every month's sales. This is hard for me to work with so I want to unpivot the data.

 

I select all the columns except for the Month&Year combination columns and then say "unpivot all others" when I do this I then get different values than what is accurate. For example in my excel sheet, total sales could be 1Million but after I unpivot the total is now 400k. I have no idea why this may be occuring but I am looking for input.

 

I unpivoted the data in excel and it works perfect so the error is on the PBI side. Unpivoting in excel is not an option going forward due to file size

3 REPLIES 3
Nishantjain
Continued Contributor
Continued Contributor

@Anonymous 

 

Have you tried to narrow your search and identify where the issue is? I would suggest you select a sample month and product and see if the unpivot reconcile to the excel spreadsheet.

 

Thanks

Nishant

v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

Could you show some screenshots about it. and if you have test the total result is correct?

If you could share some sample data and your expected output for us to have a test, 

You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

@Anonymous not sure why that would be the case, just to clarify, 1M sales is for all the months, correct?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.