-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.lkml
54 lines (47 loc) · 1.52 KB
/
manifest.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
51
52
53
54
# project_name: "snowflake_test"
# constant: schema_name {
# value: "schema_1"
# }
# constant: negative_percentage_refund_decimal{
# value:
# "
# {% assign digits = value | split:'.' | last | split:'' %}
# {% assign length = digits | size | minus: 1 %}
# {% assign res = '' %}
# {% for i in (0...length) %}
# {% if i == 1 %}
# {% assign res = res | append: digits[i] | append: '.' | append: ';' %}
# {% else %}
# {% assign res = res | append: digits[i] | append: 1;1%}
# {% endif %}
# {% endfor %}
# <p style=\"text-align:left;color:red;line-height:1.5;padding: 11px 0;\">({{res| remove_last: ';' | split: ';' | join:''| round }}%)</p>"
# }
# constant: simple_constant {
# value: "helloworld"
# }
# constant: liquid_constant {
# value: "
# {% if view._name == order_items %}
# <p style=\"text-align:left;color:red;line-height:1.5;padding: 11px 0;\">({{ value }}%)</p>
# {% else %}
# <p style=\"text-align:left;color:blue;line-height:1.5;padding: 11px 0;\">({{ value }}%)</p>
# {% endif %}
# "
# }
# visualization: {
# id: "treemap-danielle"
# label: "Treemap Danielle"
# url: "https://github.com/looker/custom_visualizations_v2/tree/master/dist/treemap.js"
# }
# visualization: {
# id: "treemap-danielle-test"
# label: "Treemap Danielle Test"
# url: "https://looker-custom-viz-a.lookercdn.com/master/treemap.js"
# }
# # Use local_dependency: To enable referencing of another project
# # on this instance with include: statements
#
# local_dependency: {
# project: "name_of_other_project"
# }