Create a List of provided data in power query

srehman

Board Regular
Joined
Jan 4, 2020
Messages
210
Office Version
  1. 2016
Platform
  1. Windows
Hi Team,

I have many random series which are generated by system, Start Number & End Number , I need to create list from start to End of each series.

as mentioned below.

Any idea.
Thanks in advance

Book1
ABCDEFG
1Data ProvidedResult Required
2Series NameSeries startSeries EndSeries NameSeries
3A1520115210A15201
4B1780117805A15202
5C1945119456A15203
6A15204
7A15205
8A15206
9A15207
10A15208
11A15209
12A15210
13B17801
14B17802
15B17803
16B17804
17B17805
18C19451
19C19452
20C19453
21C19454
22C19455
23C19456
24
Sheet1
 

Attachments

  • Series.PNG
    Series.PNG
    32.9 KB · Views: 3

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
try
Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    List = Table.AddColumn(Source, "Serie", each {[Series start]..[Series End]}),
    Expand = Table.ExpandListColumn(List, "Serie"),
    TSC = Table.SelectColumns(Expand,{"Series Name", "Serie"})
in
    TSC
 
Upvote 0
Thanks Sandy Perfectly on target.

Thanks for increasing my knowledge i learn something new today ( {[Series start]..[Series End]}) which is the key.

Take Care

Thanks a lot Champ !!!
 
Upvote 0

Forum statistics

Threads
1,223,790
Messages
6,174,600
Members
452,574
Latest member
hang_and_bang

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