Table:
0
A
B
C
D
E
F
1
treatment id
dog id
professional id
treatment type code
date of treatment
cost of treatment
2
1
14
9
WALK
3/19/2018 4:39
567
3
2
4
10
VAC
3/15/2018 20:25
147
4
3
14
4
EXAM
3/8/2018 5:26
429
5
4
2
8
VAC
3/1/2018 4:14
266
6
5
12
14
VAC
3/23/2018 13:52
668
7
6
10
4
EXAM
3/11/2018 4:23
313
8
7
15
14
EXAM
3/10/2018 11:45
852
9
8
2
6
EXAM
3/24/2018 22:25
407
10
9
14
10
WALK
3/14/2018 19:10
139
11
10
10
7
WALK
2/28/2018 17:09
681
12
11
15
5
VAC
3/13/2018 12:22
514
13
12
13
9
EXAM
3/16/2018 10:27
428
14
13
7
8
VAC
2/26/2018 9:08
945
15
14
10
9
WALK
3/4/2018 20:33
349
16
15
1
6
WALK
3/15/2018 19:10
656

Questions and formulas:
Question: How many dogs went through any treatments?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: Count the number of dogs that went through a treatment.
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: How many professionals have performed any treatment to dogs?
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C16))
Level: easy
Question: Find the number of professionals who have ever treated dogs.
Formula: ROWS(UNIQUE(C1))
Formula2: ROWS(UNIQUE(C2:C16))
Level: easy
Question: Total number of dogs and treatments respectively
Formula: HSTACK(SUM(B1), SUM(A1))
Formula2: HSTACK(SUM(B2:B16), SUM(A2:A16))
Level: medium
Question: How many dos and treatments they received?
Formula: HSTACK(SUM(B1), SUM(A1))
Formula2: HSTACK(SUM(B2:B16), SUM(A2:A16))
Level: medium
Question: How many professionals treat a dog?
Formula: SUMMARIZE(B1,SUMX(C1))
Formula2: SUMMARIZE(B2:B16,SUMX(C2:C16))
Level: easy
Question: how many dogs and treatments respectively?
Formula: HSTACK(SUM(B1), SUM(A1))
Formula2: HSTACK(SUM(B2:B16), SUM(A2:A16))
Level: medium