forked from quiccklabs/Labs_solutions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLooker Functions and Operators
65 lines (44 loc) · 1 KB
/
Looker Functions and Operators
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
TASK 1:-
# Place in `faa` model
explore: +flights {
query: start_from_here{
dimensions: [depart_week, distance_tiered]
measures: [count]
filters: [flights.depart_date: "2003"]
}
}
TASK 2:-
# Place in `faa` model
explore: +flights {
query: start_from_here{
dimensions: [aircraft_origin.state]
measures: [percent_cancelled]
filters: [flights.depart_date: "2000"]
}
}
TASK 3:-
# Place in `faa` model
explore: +flights {
query: start_from_here{
dimensions: [aircraft_origin.state]
measures: [cancelled_count, count]
filters: [flights.depart_date: "2004"]
}
}
TASK 4:-
# Place in `faa` model
explore: +flights {
query: start_from_here{
dimensions: [carriers.name]
measures: [total_distance]
}
}
TASK 5:-
# Place in `faa` model
explore: +flights {
query:start_from_here {
dimensions: [depart_year, distance_tiered]
measures: [count]
filters: [flights.depart_date: "after 2000/01/01"]
}
}