
KENNETH BATILO
Member
Members

Forum Posts: 27
Member Since:
January 30, 2020
January 30, 2020

I need to use index and offset to get a parent value in the same value as a child. Or if you have another suggestion. I'm new to power query and this forum has been very helpful.
So below is an example I need.
How could I do the same thing in power query?
NAME | Offset/Index (row) |
PARENT 1 | 0 |
CHILD 1 | 1 |
PARENT 2 | 0 |
CHILD 1 | 1 |
CHILD 2 | 2 |
In excel, I use a the offset formula to get the parent to the child row.
=OFFSET([@NAME],-[@[Offset/Index (row)]],0)
Results below
CHILD | PARENT |
CHILD 1 | PARENT 1 |
CHILD 1 | PARENT 2 |
CHILD 2 | PARENT 2 |
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Fluff, Terry Hedditch, Shoua Lee, Hilary Burchfield
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
Hans Hallebeek: 185
Newest Members:
Kwaje Alfred Mogga
thong nguyen
Appiagyei Kofi Frimpong
Hilary Burchfield
Richie Wright
Adel Kock
Barbara Murray
Doug Milne
Siobhan Stringer
Rob Rooth
Forum Stats:
Groups: 3
Forums: 24
Topics: 6545
Posts: 28653
Member Stats:
Guest Posters: 49
Members: 32831
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —
