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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Chalklands
Helper I
Helper I

Importing an excel table into Power BI - Convert to List?

Hi,

I have data in an excel file that I want to import into a Power BI report, unfortunately the data is in a table not a list. 

 

For example:

 

Product    Jan 2020   Feb 2020    Mar 2020

20404        £13.42       £12.00         £12.50

20200        £6.77         £7.00           £7.25

 

How do I import this data as a list so:

 

Product      Month         Price

20404          Jan 2020      £13.42

20404          Feb 2020      £12.00

20404          Mar 2020      £12.50

20200          Jan 2020       £6.77

20200          Feb 2020       £7.00

20200          Mar 2020      £7.25

 

Is there a DAX function that I can use when importing the data that will do the conversion? Or would it be better to import each month individually and combine the data in Power BI using an append query? (Seems a long winded solution to me)

 

Thanks

1 ACCEPTED SOLUTION
Chalklands
Helper I
Helper I

Don't worry, found the solution. 

 

In edit query, select product column, right click, "unpivot other columns".

View solution in original post

1 REPLY 1
Chalklands
Helper I
Helper I

Don't worry, found the solution. 

 

In edit query, select product column, right click, "unpivot other columns".

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors