Table:
0
A
B
C
D
E
F
G
H
I
1
station id
name
annual entry exit
annual interchanges
total passengers
location
main services
number of platforms
2
1
London Waterloo
94.046
9.489
103.534
London
South Western Main Line West of England Main Line
19
3
2
London Victoria
76.231
9.157
85.38
London
Brighton Main Line Chatham Main Line
19
4
3
London Bridge
52.634
8.742
61.376
London
South Eastern Main Line Thameslink
12
5
4
London Liverpool Street
57.107
2.353
59.46
London
Great Eastern Main Line West Anglia Main Line
18
6
5
London Euston
36.609
3.832
40.44
London
West Coast Main Line
18
7
6
London Charing Cross
38.005
1.99
39.995
London
South Eastern Main Line
6
8
7
Birmingham New Street
31.214
5.118
36.331
Birmingham
West Coast Main Line Cross Country Route
13
9
8
London King's Cross
27.875
3.022
30.896
London
East Coast Main Line
12
10
9
Glasgow Central
26.639
3.018
29.658
Glasgow
West Coast Main Line
17
11
10
East Croydon
20.551
6.341
26.892
London
Brighton Main Line
6
12
11
London St Pancras
22.996
3.676
26.672
London
Midland Main Line Thameslink High-Speed 1 Eurostar
15
13
12
Stratford
21.797
2.064
23.862
London
Great Eastern Main Line Lea Valley Lines
15

Questions and formulas:
Question: How many train stations are there?
Formula: SUM(A1)
Formula2: SUM(A2:A13)
Level: easy
Question: Show the name, location, and number of platforms for all stations.
Formula: CHOOSE({1,2,3},B1,F1,H1)
Formula2: CHOOSE({1,2,3},B2:B13,F2:F13,H2:H13)
Level: easy
Question: What are all locations of train stations?
Formula: UNIQUE(F1)
Formula2: UNIQUE(F2:F13)
Level: easy
Question: Show the names and total passengers for all train stations not in London.
Formula: CHOOSE({1,2},FILTER(B1,F1<>"London"),FILTER(E1,F1<>"London"))
Formula2: CHOOSE({1,2},FILTER(B2:B13,F2:F13<>"London"),FILTER(E2:E13,F2:F13<>"London"))
Level: medium
Question: Show the names and main services for train stations that have the top three total number of passengers.
Formula: LET(a,SORTBY(CHOOSE({1,2},B1,G1),E1,-1),FILTER(a,SEQUENCE(ROWS(a))<=3))
Formula2: LET(a,SORTBY(CHOOSE({1,2},B2:B13,G2:G13),E2:E13,-1),FILTER(a,SEQUENCE(ROWS(a))<=3))
Level: hard
Question: Show all locations and the total number of platforms and passengers for all train stations in each location.
Formula: SUMMARIZE(HSTACK(F1,A1),SUMX(H1),SUMX(E1))
Formula2: SUMMARIZE(HSTACK(F2:F13,A2:A13),SUMX(H2:H13),SUMX(E2:E13))
Level: hard
Question: Show the location with most number of train stations.
Formula: TAKE(SORT(SUMMARIZE(F1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(F2:F13,SUMX(A2:A13)), 2, -1), 1)
Level: hard
Question: How many stations are there?
Formula: SUM(A1)
Formula2: SUM(A2:A13)
Level: easy
Question: Locations and stations
Formula: UNIQUE(HSTACK(F1,A1))
Formula2: UNIQUE(HSTACK(F2:F13,A2:A13))
Level: easy
Question: Location with the most stations
Formula: TAKE(SORT(SUMMARIZE(F1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(F2:F13,SUMX(A2:A13)), 2, -1), 1)
Level: hard
Question: How many stations?
Formula: SUM(A1)
Formula2: SUM(A2:A13)
Level: easy
Question: the locations and stations
Formula: UNIQUE(HSTACK(F1,A1))
Formula2: UNIQUE(HSTACK(F2:F13,A2:A13))
Level: easy
Question: Where do most stations locate?
Formula: TAKE(SORT(SUMMARIZE(F1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(F2:F13,SUMX(A2:A13)), 2, -1), 1)
Level: hard