-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathportfolio.model.lkml
50 lines (41 loc) · 1.35 KB
/
portfolio.model.lkml
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
connection: "@{database}"
# include: "/views/*.view.lkml" # include all views in the views/ folder in this project
include: "/**/*.view.lkml" # include all views in this project
include: "UDD/dashboards/*.dashboard.lookml" # include a LookML dashboard called my_dashboard
explore: full_public_dataset {
label: "Wallet Data"
}
explore: market_data {
label: "Coin Data"
join: history_with_date_crossjoin {
relationship: one_to_many
sql_on: ${market_data.id} = ${history_with_date_crossjoin.coin_id} ;;
}
}
explore: stock_info {
label: "Equity Information"
join: stock_history_with_date_crossjoin {
relationship: one_to_many
sql_on: ${stock_info.id} = ${stock_history_with_date_crossjoin.id} ;;
}
}
explore: portfolio {
label: "Current Holdings"
join: portfolio_history {
relationship: one_to_many
sql_on: ${portfolio.id} = ${portfolio_history.id} ;;
}
}
### EXPLORE FOR MATCHED PRODUCTS ONLY ###
explore: stock_info_semantic_search {
join: stock_history_with_date_crossjoin {
relationship: one_to_many
sql_on: ${stock_info_semantic_search.matched_stock_id} = ${stock_history_with_date_crossjoin.id} ;;
}
}
datagroup: history {
max_cache_age: "24 hours"
interval_trigger: "24 hours"
label: "History PDT datagroup"
description: "Datagroup for history with date crossjoin PDT"
}