Table:
0
A
B
C
D
E
F
G
H
I
1
complaint id
product id
customer id
complaint outcome code
complaint status code
complaint type code
date complaint raised
date complaint closed
staff id
2
1
117
120
OK
Closed
Product Failure
7/18/2002 10:59
4/19/1976 11:03
114
3
2
118
113
OK
New
Product Unusable
2/10/1973 22:55
9/14/2013 2:59
120
4
3
119
114
OK
New
Product Unusable
10/29/2006 7:08
9/11/1995 14:48
115
5
4
120
114
OK
Closed
Product Unusable
8/6/1977 0:31
10/14/1970 0:57
114
6
5
117
118
OK
Open
Product Failure
10/14/2007 21:50
8/17/2000 17:02
116
7
6
118
114
OK
Open
Product Unusable
7/11/1987 14:40
10/11/1975 5:54
114
8
7
117
117
OK
New
Product Unusable
7/18/2002 10:59
4/19/1976 11:03
118
9
8
117
114
OK
New
Product Unusable
2/10/1973 22:55
9/14/2013 2:59
117
10
9
117
116
OK
New
Product Unusable
10/29/2006 7:08
9/11/1995 14:48
120
11
10
118
115
OK
New
Product Unusable
8/6/1977 0:31
10/14/1970 0:57
114
12
11
118
116
OK
Open
Product Unusable
10/14/2007 21:50
8/17/2000 17:02
115
13
12
117
116
OK
Open
Product Unusable
7/11/1987 14:40
10/11/1975 5:54
114

Questions and formulas:
Question: Return complaint status codes have more than 3 corresponding complaints?
Formula: LET(query1,SUMMARIZE(E1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>3))
Formula2: LET(query1,SUMMARIZE(E2:E13,SUMX(A2:A13)),FILTER(query1,CHOOSECOLS(query1,3)>3))
Level: hard
Question: How many distinct complaint type codes are there in the database?
Formula: ROWS(UNIQUE(F1))
Formula2: ROWS(UNIQUE(F2:F13))
Level: easy
Question: Count the number of different complaint type codes.
Formula: ROWS(UNIQUE(F1))
Formula2: ROWS(UNIQUE(F2:F13))
Level: easy
Question: Find the number of complaints with Product Failure type for each complaint status.
Formula: LET(query1,FILTER(A1:I1,F1="product failure"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:I13,F2:F13="product failure"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,1))))
Level: hard
Question: Quantity of complaint types
Formula: ROWS(UNIQUE(F1))
Formula2: ROWS(UNIQUE(F2:F13))
Level: easy
Question: How many complaint type codes are there?
Formula: ROWS(UNIQUE(F1))
Formula2: ROWS(UNIQUE(F2:F13))
Level: easy
Question: How many product failure complaints have been received?
Formula: SUMIFS(A1,F1,"product failure")
Formula2: SUMIFS(A2:A13,F2:F13,"product failure")
Level: easy
Question: Which complaint statuses have we received more than 3 complaints for? 
Formula: LET(query1,SUMMARIZE(E1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>3))
Formula2: LET(query1,SUMMARIZE(E2:E13,SUMX(A2:A13)),FILTER(query1,CHOOSECOLS(query1,3)>3))
Level: hard
Question: The complaint status having more than 3 complaints.
Formula: LET(query1,SUMMARIZE(E1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>3))
Formula2: LET(query1,SUMMARIZE(E2:E13,SUMX(A2:A13)),FILTER(query1,CHOOSECOLS(query1,3)>3))
Level: hard
Question: The count of different complaint types.
Formula: ROWS(UNIQUE(F1))
Formula2: ROWS(UNIQUE(F2:F13))
Level: easy
Question: How many complaints about product failure?
Formula: SUMIFS(A1,F1,"product failure")
Formula2: SUMIFS(A2:A13,F2:F13,"product failure")
Level: easy