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: 827
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) 6
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1939
SunnyKow: 1432
Anders Sehlstedt: 917
Purfleet: 415
Frans Visser: 349
Hans Hallebeek: 331
David_Ng: 306
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Ahsan AYUB
Daniel Neilson
Joy Nicholes
Earl Hanlon
Paulo Pinto
Tavonga Machigere
Marc Poulopoulos
Viki Hennon
David Tucker
Garima Lal
Forum Stats:
Groups: 3
Forums: 25
Topics: 7058
Posts: 30931
Member Stats:
Guest Posters: 49
Members: 34427
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —