
Alon Oh
Active Member
Members

Forum Posts: 3
Member Since:
March 2, 2021
March 2, 2021

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: 689
Member Since:
November 1, 2018
November 1, 2018

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: Terry Hedditch
Guest(s) 9
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:
thong nguyen
Appiagyei Kofi Frimpong
Hilary Burchfield
Richie Wright
Adel Kock
Barbara Murray
Doug Milne
Siobhan Stringer
Rob Rooth
Tom Lewis
Forum Stats:
Groups: 3
Forums: 24
Topics: 6542
Posts: 28647
Member Stats:
Guest Posters: 49
Members: 32830
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —
