Alon Oh
Active Member
Members
Forum Posts: 3
Member Since:
March 2, 2021
March 2, 2021
Offline
Hi All,
Need your help with converting the original table into the required one (in the attached pic).
Basically i need to duplicate the rows based on the value on the last column.
Also appreciate if in some magic way i can tell the query to delete the numeric value in one of the Yellow columns, so the result will be unique value in each
row. hopes it clear.
Velouria
London or thereabouts
Moderator
Members
Trusted Members
Moderators
Trusted Members
Moderators
Forum Posts: 842
Member Since:
November 1, 2018
November 1, 2018
Offline
One way would be:
1. Unpivot the data using the 4 'WK...' columns. (this will add new Attribute and Value columns)
2. Remove the existing Total column.
3. Add a new custom total column that is just =Value
4. Add an Index column
5. Pivot on the Attribute column
6. Remove the Index column.
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: 1944
SunnyKow: 1432
Anders Sehlstedt: 956
Purfleet: 415
Hans Hallebeek: 377
Frans Visser: 351
David_Ng: 318
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Techia Braveboy
Charles Buchanan
Tiago Braga
Rehan Baig
Fred HORVATH
Silke Schmidt
Stuart Barr
Amelia Nolte
David Wier
T P Collins
Forum Stats:
Groups: 3
Forums: 25
Topics: 7154
Posts: 31382
Member Stats:
Guest Posters: 50
Members: 34655
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —