Power Query question

scott_86_

New Member
Joined
Sep 27, 2018
Messages
40
Office Version
  1. 365
Platform
  1. Windows
Hi,

Can anyone help me out with some applied steps for the below? I've tried a mixture of transpose, promote first row to header, unpivot, etc; however, so far am not having any luck!

(Apologizes, I am unable to upload a mini-sheet due to my organisations restrictions).

In the sample data below, I am trying to achieve the following:

1727247521182.png
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Power Query:
#table(List.FirstN(FROM[Column1], 3), List.Split(FROM[Column2], 3))
 
Upvote 0
Power Query:
#table(List.FirstN(FROM[Column1], 3), List.Split(FROM[Column2], 3))
Hi, thank you for the code.

Unfortunately, when I put in into the formula bar it did not work as per the snippet below.

Is there anything I am doing incorrectly?

1727396041338.png
 
Upvote 0
Try substituting FROM for your table name in the expression or change your table name to FROM
 
Upvote 0
Try substituting FROM for your table name in the expression or change your table name to FROM

Hi jimrward,

Unfortunately this did work for myself just now on the sample dataset (with the original table from excel called FROM)

1727429718688.png
 

Attachments

  • 1727429648162.png
    1727429648162.png
    8.6 KB · Views: 6
Upvote 0
What is the table name of your from data
 
Upvote 0
You appear to have changed the query name, not the table name?
 
Upvote 0
No. You need to either change the name of the table in Excel, or change the code above to use the correct table name. So, for example, if your table is called Table1, the code would be:

Power Query:
#table(List.FirstN(Table1[Column1], 3), List.Split(Table1[Column2], 3))
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top