Forum Discussion
Retrive all rows below specific cell value and its associated rows from next column and ceate table
Hi,
I am new to Power query from excel. Basically, I wanted to retrive all rows below cell from same column (Column1), which contains 'Model' and its associated rows from next column (Column2) 'Description' and create new table of it. Source data is as below-
Result I wanted to get is as-
Can anyone suggest me steps/query to it?
Thanks in advance,
- Anonymous5 years ago
Sorry about that!
= Table.PromoteHeaders(Table.SkipFirstN(Table1, 2))[[Model], [Description]]
--Nate
3 Replies
- AnonymousNot applicable
Let's say your table or last step is named Table1. In the formula bar, you can type:
= Table.SkipFirstN(Table1, 2)[[Model], [Description]]--Nate
- AnonymousNot applicable
thanks for reply.....getting following error
Expression.Error: The column 'Model' of the table wasn't found.
Details:
Model
- AnonymousNot applicable
Sorry about that!
= Table.PromoteHeaders(Table.SkipFirstN(Table1, 2))[[Model], [Description]]
--Nate