forked from nrodrigueztorres/VMart_quick_start
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpromotion_dimension.view.lookml
53 lines (39 loc) · 1.13 KB
/
promotion_dimension.view.lookml
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
- view: promotion_dimension
sql_table_name: public.promotion_dimension
fields:
- dimension: ad_media_name
sql: ${TABLE}.ad_media_name
- dimension: ad_type
sql: ${TABLE}.ad_type
- dimension: coupon_type
sql: ${TABLE}.coupon_type
- dimension: display_provider
sql: ${TABLE}.display_provider
- dimension: display_type
sql: ${TABLE}.display_type
- dimension: price_reduction_type
sql: ${TABLE}.price_reduction_type
- dimension_group: promotion_begin
type: time
timeframes: [date, week, month]
convert_tz: false
sql: ${TABLE}.promotion_begin_date
- dimension: promotion_cost
type: int
sql: ${TABLE}.promotion_cost
- dimension_group: promotion_end
type: time
timeframes: [date, week, month]
convert_tz: false
sql: ${TABLE}.promotion_end_date
- dimension: promotion_key
type: int
sql: ${TABLE}.promotion_key
primary_key: true
- dimension: promotion_media_type
sql: ${TABLE}.promotion_media_type
- dimension: promotion_name
sql: ${TABLE}.promotion_name
- measure: count
type: count
drill_fields: [ad_media_name, promotion_name]