Make new column with last populated column of a series of columns using power query excel

BobZZ

New Member
Joined
Dec 30, 2016
Messages
3
In power query for excel I can get as far as columns A-E. What I would like to achieve within power query (maybe power pivot?) is to have a new column added 'F' which is the data of the last populated column from A-E.
Sample file Link
1715267825663.png
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi..
Convert the data in columns A:E to Table format.
Power Query:
let
  Kaynak = Excel.CurrentWorkbook(){[Name = "Table1"]}[Content],
  ÖzelEklendi = Table.AddColumn(
    Kaynak,
    "Last Column Data",
    each List.Last(List.RemoveNulls(Record.ToList(_)))
  ),
  KaldırılanDiğerSütunlar = Table.SelectColumns(ÖzelEklendi, {"Last Column Data"})
in
  KaldırılanDiğerSütunlar
 
Upvote 0
Solution
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Make new column with last populated column of a series of columns using power query excel
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,216,500
Messages
6,131,016
Members
449,615
Latest member
Nic0la

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