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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Simple Beginners Question about a data set to work with

A beginners question. I'm new to PowerBI and this may be a stupid question

The data I'm working with is in this type of format (below). The data is in a series of columns.

If I have to Sum the data I'm summing horizontally which makes for a complex calculation (that I am partially struggling with).

Is the data in the wrong direction.

Should each line of data be a row.

I've about 2000 rows and 3 years worth of columns.

In Excel / Pivot Tables I'd total the years as seperate columns

 

 

 

BrandSubRegionCountrySizeDemand MonthProductId2024/012024/022024/032024/042024/052024/06
TestUS US300 Jun-244000000
1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Anonymous , Your question is not stupid at all! It's a common challenge when transitioning from tools like Excel 

 

The format of your data is known as a "wide format," where each time period (month in your case) is represented as a separate column. While this format can be convenient for certain types of analysis in Excel, it can be less efficient for use in Power BI, which often works better with "long format" data.

 

You can use unpivot columns option to correct this

 

To transform your data from wide to long format, you can use tools like Power Query in Power BI. Here are the steps to do this in Power BI:

Load your data into Power BI: Import your Excel file or other data source into Power BI.
Transform Data: Click on "Transform Data" to open Power Query Editor.
Unpivot Columns:
Select the columns that you want to keep as is (e.g., Brand, SubRegion, Country, Size, Demand Month, ProductId).
Right-click on the selected columns and choose "Unpivot Other Columns." This will transform your wide data into a long format.
Rename Columns: Rename the resulting columns to something meaningful, like "Date" and "Value."




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@Anonymous , Your question is not stupid at all! It's a common challenge when transitioning from tools like Excel 

 

The format of your data is known as a "wide format," where each time period (month in your case) is represented as a separate column. While this format can be convenient for certain types of analysis in Excel, it can be less efficient for use in Power BI, which often works better with "long format" data.

 

You can use unpivot columns option to correct this

 

To transform your data from wide to long format, you can use tools like Power Query in Power BI. Here are the steps to do this in Power BI:

Load your data into Power BI: Import your Excel file or other data source into Power BI.
Transform Data: Click on "Transform Data" to open Power Query Editor.
Unpivot Columns:
Select the columns that you want to keep as is (e.g., Brand, SubRegion, Country, Size, Demand Month, ProductId).
Right-click on the selected columns and choose "Unpivot Other Columns." This will transform your wide data into a long format.
Rename Columns: Rename the resulting columns to something meaningful, like "Date" and "Value."




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Anonymous
Not applicable

Thanks for that @bhanu_gautam . That was really helpful. I think my data is in a better position now (even if I have many125,000 rows now. I really appreciate it.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.