given the range below (much bigger in my data) I want to combine/collapse Monday for the week into Tuesdays values for the week per product. currently 2 products. so 4 rows in row 10-13 would collapse into 2 rows, and leave Tuesday and sum Monday into Tuesday for each product. i assume PwrQry is best solution (please advise) thanks
row12; 8/29/2022, TEST_B CDX, 219, 3, Tuesday
row13; 8/29/2022, TEST_A, 131, 3, Tuesday
row12; 8/29/2022, TEST_B CDX, 219, 3, Tuesday
row13; 8/29/2022, TEST_A, 131, 3, Tuesday
powerquery_question, MrExcel.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | date | product | test | weekdayNum | WeekDay | ||
2 | 8/24/2022 | TEST_A | 226 | 4 | Wednesday | ||
3 | 8/24/2022 | TEST_A | 211 | 4 | Wednesday | ||
4 | 8/25/2022 | TEST_B CDX | 239 | 5 | Thursday | ||
5 | 8/25/2022 | TEST_A | 202 | 5 | Thursday | ||
6 | 8/26/2022 | TEST_B CDX | 267 | 6 | Friday | ||
7 | 8/26/2022 | TEST_A | 183 | 6 | Friday | ||
8 | 8/27/2022 | TEST_B CDX | 233 | 7 | Saturday | ||
9 | 8/27/2022 | TEST_A | 185 | 7 | Saturday | ||
10 | 8/29/2022 | TEST_B CDX | 10 | 2 | Monday | ||
11 | 8/29/2022 | TEST_A | 4 | 2 | Monday | ||
12 | 8/30/2022 | TEST_B CDX | 209 | 3 | Tuesday | ||
13 | 8/30/2022 | TEST_A | 127 | 3 | Tuesday | ||
14 | 8/31/2022 | TEST_B CDX | 243 | 4 | Wednesday | ||
15 | 8/31/2022 | TEST_A | 192 | 4 | Wednesday | ||
16 | 9/1/2022 | TEST_A | 201 | 5 | Thursday | ||
17 | 9/1/2022 | TEST_B CDX | 239 | 5 | Thursday | ||
18 | 9/2/2022 | TEST_A | 235 | 6 | Friday | ||
19 | 9/2/2022 | TEST_B CDX | 265 | 6 | Friday | ||
20 | 9/3/2022 | TEST_B CDX | 244 | 7 | Saturday | ||
21 | 9/3/2022 | TEST_A | 188 | 7 | Saturday | ||
22 | 9/6/2022 | TEST_B CDX | 8 | 3 | Tuesday | ||
23 | 9/6/2022 | TEST_A | 5 | 3 | Tuesday | ||
24 | 9/7/2022 | TEST_A | 152 | 4 | Wednesday | ||
25 | 9/7/2022 | TEST_B CDX | 158 | 4 | Wednesday | ||
26 | 9/8/2022 | TEST_A | 216 | 5 | Thursday | ||
27 | 9/8/2022 | TEST_B CDX | 226 | 5 | Thursday | ||
28 | 9/9/2022 | TEST_A | 163 | 6 | Friday | ||
29 | 9/9/2022 | TEST_B CDX | 245 | 6 | Friday | ||
30 | 9/10/2022 | TEST_B CDX | 214 | 7 | Saturday | ||
31 | 9/10/2022 | TEST_A | 160 | 7 | Saturday | ||
32 | 9/12/2022 | TEST_A | 18 | 2 | Monday | ||
33 | 9/12/2022 | TEST_B CDX | 18 | 2 | Monday | ||
34 | 9/13/2022 | TEST_A | 144 | 3 | Tuesday | ||
35 | 9/13/2022 | TEST_B CDX | 171 | 3 | Tuesday | ||
36 | 9/14/2022 | TEST_A | 174 | 4 | Wednesday | ||
37 | 9/14/2022 | TEST_B CDX | 197 | 4 | Wednesday | ||
38 | 9/15/2022 | TEST_A | 182 | 5 | Thursday | ||
39 | 9/15/2022 | TEST_B CDX | 251 | 5 | Thursday | ||
40 | 9/16/2022 | TEST_A | 196 | 6 | Friday | ||
41 | 9/16/2022 | TEST_B CDX | 246 | 6 | Friday | ||
42 | 9/17/2022 | TEST_A | 206 | 7 | Saturday | ||
43 | 9/17/2022 | TEST_B CDX | 277 | 7 | Saturday | ||
44 | 9/19/2022 | TEST_A | 11 | 2 | Monday | ||
45 | 9/19/2022 | TEST_B CDX | 9 | 2 | Monday | ||
46 | 9/20/2022 | TEST_A | 153 | 3 | Tuesday | ||
47 | 9/20/2022 | TEST_B CDX | 183 | 3 | Tuesday | ||
48 | 9/21/2022 | TEST_A | 151 | 4 | Wednesday | ||
49 | 9/21/2022 | TEST_B CDX | 235 | 4 | Wednesday | ||
Sheet4 |