Table:
0
A
B
C
D
E
F
1
Country
First store
Hypermarkets
Supermarkets
Hard Discounters
Cash & Carry
2
India
2010
5
–
–
1 2
3
China
1995
223
–
–
–
4
Indonesia
1998
70
15
–
–
5
Bahrain
2008
1
–
–
–
6
Japan
2000
7
–
–
–
7
Jordan
2006
1
3
–
–
8
Kuwait
2007
2
–
–
–
9
Lebanon
2013
1
–
–
–
10
Malaysia
1994
26
5
–
–
11
Oman
2000
4
–
–
–
12
Pakistan
2009
2
–
–
–
13
Iran
2009
2
–
–
–
14
Iraq
2012
1
–
–
–
15
Qatar
2000
3
1
–
–
16
Saudi Arabia
2004
11
1
–
–
17
Syria
2009
1
–
–
–
18
Taiwan
1989
70
–
–
–
19
Thailand
1996-2011
0
0
0
0
20
United Arab Emirates
1995
11
2
–
–

Questions and formulas:
Question: Which country had the first store in the year 2007?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1=2007),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F20,B2:B20=2007),1))
Level: medium
Question: What year was the first store that had a hypermarket of 3?
Formula: LET(query1,SUMMARIZE(B1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)=3))
Formula2: LET(query1,SUMMARIZE(B2:B20,SUMX(C2:C20)),FILTER(query1,CHOOSECOLS(query1,2)=3))
Level: hard
Question: What year was the first store in India?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="india"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F20,A2:A20="india"),2))
Level: medium