Skip to content

Commit 6cfb415

Browse files
Merge pull request #49 from thjennifer/main
Added Balance Sheet views, explores and dashboards
2 parents 9ae0da8 + aad5217 commit 6cfb415

15 files changed

+1256
-7
lines changed
Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
# This dashboard requires the Report Table visualization (available for free on Looker Marketplace) to be installed.
2+
3+
- dashboard: balance_sheet_finance_table
4+
title: Balance Sheet Finance Report
5+
layout: newspaper
6+
preferred_viewer: dashboards-next
7+
filters_location_top: false
8+
description: "Reports Fiscal Period Cumulative Amount in Global Currency for Levels 2, 3, and 4 of the selected hierarchy, chart of accounts, company, fiscal period and comparison period (if any). Requires Report Table visualization to be downloaded from Looker Marketplace."
9+
10+
elements:
11+
- title: Summary Title
12+
name: Summary Title
13+
explore: balance_sheet
14+
type: single_value
15+
fields: [balance_sheet.title_balance_sheet]
16+
filters:
17+
balance_sheet.level_number: '3,4'
18+
custom_color_enabled: true
19+
show_single_value_title: false
20+
show_comparison: false
21+
listen:
22+
Global Currency: balance_sheet.target_currency_tcurr
23+
Chart of Accounts: balance_sheet.chart_of_accounts
24+
Company: balance_sheet.company_text
25+
Fiscal Period: balance_sheet.select_fiscal_period
26+
Hierarchy: balance_sheet.hierarchy_name
27+
row: 0
28+
col: 0
29+
width: 18
30+
height: 2
31+
32+
- title: Balance Sheet
33+
name: Balance Sheet
34+
explore: balance_sheet
35+
type: marketplace_viz_report_table::report_table-marketplace
36+
fields: [balance_sheet.level_number,balance_sheet.parent, balance_sheet.parent_text, balance_sheet.node,
37+
balance_sheet.node_text, balance_sheet.total_cumulative_amount_in_global_currency, balance_sheet.fiscal_year_period]
38+
pivots: [balance_sheet.fiscal_year_period]
39+
filters:
40+
balance_sheet.level_number: '2,3,4'
41+
sorts: [balance_sheet.fiscal_year_period, balance_sheet.level_number, balance_sheet.parent,balance_sheet.node]
42+
limit: 5000
43+
total: true
44+
hidden_fields: [balance_sheet.level_number, balance_sheet.parent, balance_sheet.node]
45+
hidden_points_if_no: []
46+
series_labels: {}
47+
show_view_names: false
48+
theme: contemporary
49+
# customTheme: ''
50+
layout: auto
51+
minWidthForIndexColumns: true
52+
headerFontSize: 12
53+
bodyFontSize: 12
54+
showTooltip: true
55+
showHighlight: true
56+
# columnOrder: {}
57+
rowSubtotals: true
58+
colSubtotals: false
59+
spanRows: true
60+
spanCols: true
61+
calculateOthers: true
62+
sortColumnsBy: pivots
63+
useViewName: false
64+
useHeadings: false
65+
useShortName: false
66+
useUnit: false
67+
groupVarianceColumns: false
68+
genericLabelForSubtotals: false
69+
indexColumn: false
70+
transposeTable: false
71+
label|balance_sheet.parent_text: Parent
72+
heading|balance_sheet.parent_text: ''
73+
hide|balance_sheet.parent_text: false
74+
label|balance_sheet.node_text: Node
75+
heading|balance_sheet.node_text: ''
76+
hide|balance_sheet.node_text: false
77+
subtotalDepth: '1'
78+
label|balance_sheet.total_cumulative_amount_in_global_currency: Amount
79+
heading|balance_sheet.total_cumulative_amount_in_global_currency: ''
80+
style|balance_sheet.total_cumulative_amount_in_global_currency: black_red
81+
reportIn|balance_sheet.total_cumulative_amount_in_global_currency: '1'
82+
unit|balance_sheet.total_cumulative_amount_in_global_currency: ''
83+
comparison|balance_sheet.total_cumulative_amount_in_global_currency: balance_sheet.fiscal_year_period
84+
switch|balance_sheet.total_cumulative_amount_in_global_currency: false
85+
var_num|balance_sheet.total_cumulative_amount_in_global_currency: true
86+
var_pct|balance_sheet.total_cumulative_amount_in_global_currency: true
87+
show_row_numbers: false
88+
transpose: false
89+
truncate_text: true
90+
hide_totals: false
91+
hide_row_totals: false
92+
size_to_fit: true
93+
table_theme: white
94+
limit_displayed_rows: false
95+
enable_conditional_formatting: false
96+
header_text_alignment: left
97+
header_font_size: '12'
98+
rows_font_size: '12'
99+
conditional_formatting_include_totals: false
100+
conditional_formatting_include_nulls: false
101+
show_sql_query_menu_options: false
102+
show_totals: true
103+
show_row_totals: true
104+
truncate_header: false
105+
minimum_column_width: 75
106+
series_cell_visualizations:
107+
balance_sheet.total_cumulative_amount_in_global_currency:
108+
is_active: false
109+
hidden_pivots: {}
110+
defaults_version: 0
111+
y_axes: []
112+
title_hidden: true
113+
listen:
114+
Fiscal Period: balance_sheet.select_fiscal_period
115+
Comparison Type: balance_sheet.select_comparison_type
116+
Custom Comparison (Optional): balance_sheet.select_custom_comparison_period
117+
Hierarchy: balance_sheet.hierarchy_name
118+
Chart of Accounts: balance_sheet.chart_of_accounts
119+
Company: balance_sheet.company_text
120+
Global Currency: balance_sheet.target_currency_tcurr
121+
122+
row: 2
123+
col: 0
124+
width: 18
125+
height: 13
126+
127+
128+
129+
filters:
130+
- name: Fiscal Period
131+
title: Fiscal Period
132+
type: field_filter
133+
# default_value: '2023.11'
134+
# assumes as 12 month fiscal period that aligns with calendar. Will find last month and select period with same value
135+
default_value: "{% assign current_month = \"today\" | date: '%m' %}{% assign current_year = \"today\" | date: '%Y' %}{% if current_month == '01' %}{% assign last_month = '12' %}{% assign last_month_year = current_year | times: 1 | minus: 1 %}{% else %}{% assign last_month = current_month | times: 1 | minus: 1 | prepend: '00' | slice: -2, 2 %}{% assign last_month_year = current_year %}{% endif %}{% assign last_period = last_month_year | append: '.' | append: last_month %}{{last_period | strip}}"
136+
allow_multiple_values: false
137+
required: true
138+
ui_config:
139+
type: dropdown_menu
140+
display: inline
141+
explore: balance_sheet
142+
field: balance_sheet.select_fiscal_period
143+
144+
- name: Comparison Type
145+
title: Comparison Type
146+
type: field_filter
147+
default_value: yoy
148+
allow_multiple_values: false
149+
required: true
150+
ui_config:
151+
type: dropdown_menu
152+
display: inline
153+
explore: balance_sheet
154+
field: balance_sheet.select_comparison_type
155+
156+
- name: Custom Comparison (Optional)
157+
title: Custom Comparison (Optional)
158+
type: field_filter
159+
default_value: ''
160+
allow_multiple_values: false
161+
required: false
162+
ui_config:
163+
type: dropdown_menu
164+
display: inline
165+
explore: balance_sheet
166+
field: balance_sheet.select_custom_comparison_period
167+
168+
- name: Global Currency
169+
title: Global Currency
170+
type: field_filter
171+
default_value: USD
172+
# default_value: "{% assign dc = _user_attributes['sap_default_global_currency %}{{dc}}"
173+
allow_multiple_values: false
174+
required: true
175+
ui_config:
176+
type: dropdown_menu
177+
display: inline
178+
explore: balance_sheet
179+
field: balance_sheet.target_currency_tcurr
180+
181+
- name: Hierarchy
182+
title: Hierarchy
183+
type: field_filter
184+
default_value: FPA1
185+
# default_value: "{% assign dh = _user_attributes['sap_balance_sheet_default_hierarchy']%}{{dh}}"
186+
allow_multiple_values: false
187+
required: true
188+
ui_config:
189+
type: dropdown_menu
190+
display: inline
191+
explore: balance_sheet
192+
field: balance_sheet.hierarchy_name
193+
194+
- name: Chart of Accounts
195+
title: Chart of Accounts
196+
type: field_filter
197+
default_value: CA01
198+
# default_value: "{% assign dca = _user_attributes['sap_balance_sheet_default_chart_of_accounts']%}{{dca}}"
199+
allow_multiple_values: false
200+
required: true
201+
ui_config:
202+
type: dropdown_menu
203+
display: inline
204+
explore: balance_sheet
205+
field: balance_sheet.chart_of_accounts
206+
207+
- name: Company
208+
title: Company
209+
type: field_filter
210+
default_value: "%CENTRAL%"
211+
# default_value: "{% assign dco = _user_attributes['sap_balance_sheet_default_company']%}{{dco}}"
212+
allow_multiple_values: false
213+
required: true
214+
ui_config:
215+
type: advanced
216+
display: popover
217+
explore: balance_sheet
218+
field: balance_sheet.company_text

0 commit comments

Comments
 (0)