Table:
0
A
B
C
D
E
F
G
H
1
id
train number
name
origin
destination
time
interval
train
2
1
16724
Ananthapuri Express
Trivandrum
Chennai
1/1/2018 17:15
Daily
3
2
16127
Guruvayur Express
Chennai
Guruvayur
1/1/2018 22:10
Daily
4
3
16128
Guruvayur Express
Guruvayur
Chennai
1/1/2018 4:49
Daily
5
4
16723
Ananthapuri Express
Chennai
Trivandrum
1/1/2018 11:35
Daily
6
5
16382
Jayanthi Janatha Express
Kanniyakumari
Mumbai
1/1/2018 6:30
Daily
7
6
16525
Island Express
Kanniyakumari
Bangalore
1/1/2018 11:15
Daily
8
7
56701
Madurai Fast Passenger
Quilon
Madurai
1/1/2018 21:49
Daily
9
8
56700
Quilon Fast Passenger
Madurai
Quilon Junction
1/1/2018 4:55
Daily
10
9
16526
Island Express
Bangalore
Kanniyakumari
1/1/2018 16:59
Daily
11
10
16381
Jayanthi Janatha Express
Mumbai
Kanniyakumari
1/1/2018 10:38
Daily
12
11
16650
Parasuram Express
Nagercoil
Mangalore
1/1/2018 4:20
Daily

Questions and formulas:
Question: Find the number of trains starting from each origin.
Formula: SUMMARIZE(D1,DCOUNTX(H1))
Formula2: SUMMARIZE(D2:D12,DCOUNTX(H2:H12))
Level: easy
Question: Find the origins from which more than 1 train starts.
Formula: LET(query1,SUMMARIZE(D1,DCOUNTX(H1)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Formula2: LET(query1,SUMMARIZE(D2:D12,DCOUNTX(H2:H12)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Level: hard
Question: How many trains for each origin?
Formula: SUMMARIZE(D1,DCOUNTX(H1))
Formula2: SUMMARIZE(D2:D12,DCOUNTX(H2:H12))
Level: easy
Question: Origins where more than one trains have departed.
Formula: LET(query1,SUMMARIZE(D1,DCOUNTX(H1)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Formula2: LET(query1,SUMMARIZE(D2:D12,DCOUNTX(H2:H12)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Level: hard
Question: How many trains from each origin?
Formula: SUMMARIZE(D1,DCOUNTX(H1))
Formula2: SUMMARIZE(D2:D12,DCOUNTX(H2:H12))
Level: easy
Question: Origins having more than one train departed.
Formula: LET(query1,SUMMARIZE(D1,DCOUNTX(H1)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Formula2: LET(query1,SUMMARIZE(D2:D12,DCOUNTX(H2:H12)),FILTER(query1,CHOOSECOLS(query1,3)>1))
Level: hard