jaryszek
Member
Members
Forum Posts: 183
Member Since:
February 1, 2019
February 1, 2019
Offline
Hello,
i have the source table:
Name
HotSummerInBerlin |
and now using query:
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Unpivoted Columns" = Table.UnpivotOtherColumns(Source, {}, "Attribute", "Value")
in
#"Unpivoted Columns"
How can i keep column from source table?
The result should be:
Name|Attribute|Value
HotSummerInBerlin | Name | HotSummerInBerlin |
Best,
Jacek
Mynda Treacy
Admin
Forum Posts: 4772
Member Since:
July 16, 2010
July 16, 2010
Offline
Hi Jacek,
Add a custom column with this formula:
= Source
Expand the column to reveal the Name again.
Here is the code:
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content], #"Unpivoted Columns" = Table.UnpivotOtherColumns(Source, {}, "Attribute", "Value"), #"Added Custom" = Table.AddColumn(#"Unpivoted Columns", "Custom", each Source), #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Name"}, {"Name"}) in #"Expanded Custom"
Mynda
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1939
SunnyKow: 1432
Anders Sehlstedt: 925
Purfleet: 415
Frans Visser: 349
Hans Hallebeek: 343
David_Ng: 312
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
WdwwPuKkx YjFmsfPYXpBW
Lisa Donaldson
roiAIAGUodrbOHw aCBaBxTfphIXDhr
Hiroyuki Murai
Mark Allen
Yves Gagnon
PATRICK WALTER
Carley Brice
Ash Rahman
Christelle Lamprecht
Forum Stats:
Groups: 3
Forums: 25
Topics: 7088
Posts: 31065
Member Stats:
Guest Posters: 49
Members: 34506
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —