Table:
0
A
B
C
D
E
F
G
1
order id
customer id
order status code
shipping method code
order placed datetime
order delivered datetime
order shipping charges
2
1
2
Cancelled
Unspecified
6/15/2015 18:19
3/20/2018 12:00
85.79
3
2
8
Cancelled
Unspecified
7/5/2009 20:02
3/20/2018 12:00
98.4
4
3
9
Cancelled
FedEx
11/15/2008 12:22
3/20/2018 12:00
36.87
5
4
1
Delivered
UPS
10/23/2008 6:42
3/20/2018 12:00
98.73
6
5
7
Paid
FedEx
5/28/2017 5:48
3/20/2018 12:00
35.63
7
6
2
Cancelled
Unspecified
6/24/2014 13:53
3/20/2018 12:00
99.26
8
7
15
Cancelled
FedEx
8/28/2014 15:08
3/20/2018 12:00
26.56
9
8
2
Delivered
Unspecified
6/5/2012 9:05
3/20/2018 12:00
77.32
10
9
1
Cancelled
FedEx
5/30/2009 16:13
3/20/2018 12:00
57.36
11
10
14
Paid
Unspecified
8/29/2013 3:17
3/20/2018 12:00
33.58
12
11
1
Paid
Unspecified
12/29/2015 10:39
3/20/2018 12:00
22.84
13
12
12
Cancelled
Unspecified
10/20/2016 20:59
3/20/2018 12:00
21.24
14
13
12
Paid
FedEx
6/16/2013 17:51
3/20/2018 12:00
31.33
15
14
14
Paid
UPS
4/29/2010 8:21
3/20/2018 12:00
46.4
16
15
5
Delivered
FedEx
1/18/2009 20:06
3/20/2018 12:00
74.28

Questions and formulas:
Question: Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.
Formula: LET(query1,FILTER(A1:G1,(C1="paid")+(C1="cancelled")),SUMMARIZE(HSTACK(CHOOSECOLS(query1,2,1)),SUMX(CHOOSECOLS(query1,7))))
Formula2: LET(query1,FILTER(A2:G16,(C2:C16="paid")+(C2:C16="cancelled")),SUMMARIZE(HSTACK(CHOOSECOLS(query1,2,1)),SUMX(CHOOSECOLS(query1,7))))
Level: hard