Skip to content

Commit

Permalink
Merge pull request #53 from thjennifer/main
Browse files Browse the repository at this point in the history
release 5.4 updates
  • Loading branch information
thjennifer authored Mar 28, 2024
2 parents 99e58c6 + 38ed63a commit 68e7ce3
Show file tree
Hide file tree
Showing 42 changed files with 4,254 additions and 1,022 deletions.
162 changes: 17 additions & 145 deletions LookML_Dashboard/balance_sheet_mktplace_report_table.dashboard.lookml
Original file line number Diff line number Diff line change
@@ -1,34 +1,19 @@
# This dashboard requires the Report Table visualization (available for free on Looker Marketplace) to be installed.
#########################################################{
# Balance Sheet financial report using Report Table visualization (available for free on Looker Marketplace)
# extends filters and title summary from balance_sheet_template
# customizations:
# - Balance Sheet table based on marketplace_viz_report_table::report_table-marketplace
#########################################################}

- dashboard: balance_sheet_mktplace_report_table
title: Financial Statement - Balance Sheet
title: Financial Balance Sheet
layout: newspaper
preferred_viewer: dashboards-next
filters_location_top: false
description: "Reports Fiscal Period Cumulative Amount in Global Currency for Levels 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."
extends: balance_sheet_template

elements:
- title: Summary Title
name: Summary Title
explore: balance_sheet
type: single_value
fields: [balance_sheet.title_balance_sheet]
filters:
balance_sheet.level_number: '3,4'
custom_color_enabled: true
show_single_value_title: false
show_comparison: false
listen:
Currency: balance_sheet.target_currency_tcurr
Chart of Accounts: balance_sheet.chart_of_accounts
Company: balance_sheet.company_text
Fiscal Period: balance_sheet.select_fiscal_period
Hierarchy: balance_sheet.hierarchy_name
Ledger: balance_sheet.ledger_name
row: 0
col: 0
width: 18
height: 2

- title: Balance Sheet
name: Balance Sheet
Expand All @@ -38,7 +23,8 @@
balance_sheet.total_cumulative_amount_in_global_currency, balance_sheet.fiscal_year_period,
balance_sheet_hierarchy_selection_sdt.hier3_node_text]
pivots: [balance_sheet.fiscal_year_period]
filters: {}
filters:
balance_sheet_fiscal_periods_selected_sdt.fiscal_period_group: "-NULL"
sorts: [balance_sheet.fiscal_year_period desc, balance_sheet_hierarchy_selection_sdt.hier1_node_text,
balance_sheet_hierarchy_selection_sdt.hier2_node_text, balance_sheet_hierarchy_selection_sdt.hier3_node_text]
total: true
Expand All @@ -63,7 +49,7 @@
useHeadings: false
useShortName: false
useUnit: false
groupVarianceColumns: false
groupVarianceColumns: true
genericLabelForSubtotals: false
indexColumn: false
transposeTable: false
Expand All @@ -90,131 +76,17 @@
show_row_totals: true
truncate_header: false
minimum_column_width: 75

listen:
Fiscal Period: balance_sheet.select_fiscal_period
Comparison Type: balance_sheet.select_comparison_type
Custom Comparison Period: balance_sheet.select_custom_comparison_period
Hierarchy: balance_sheet.hierarchy_name
Chart of Accounts: balance_sheet.chart_of_accounts
Company: balance_sheet.company_text
Currency: balance_sheet.target_currency_tcurr
Ledger: balance_sheet.ledger_name
Top Hierarchy Level to Display: balance_sheet_hierarchy_selection_sdt.parameter_pick_start_level
Company Code: balance_sheet.company_text
Global Currency: balance_sheet.target_currency_tcurr
Ledger Name: universal_ledgers_md.ledger_id_name
Top Hierarchy Level: balance_sheet_hierarchy_selection_sdt.parameter_pick_start_level
row: 2
col: 0
width: 18
height: 13



filters:
- name: Fiscal Period
title: Fiscal Period
type: field_filter
# assumes as 12 month fiscal period that aligns with calendar. Will find last complete month and select period with same value
default_value: "{% if _user_attributes['sap_use_demo_data']=='Yes'%}{% assign ym = '2023.011'%}{%else%}{% assign intervalDays = 31 %}{% assign intervalSeconds = intervalDays | times: 86400 %}{% assign daysMinus31 = 'now' | date: '%s' | minus: intervalSeconds %}{% assign m = daysMinus31 | date: '%m' | prepend: '00' | slice: -3,3 %}{% assign ym = daysMinus31 | date: '%Y' | append: '.' | append: m %}{%endif%}{{ym}}"
allow_multiple_values: false
required: true
ui_config:
type: dropdown_menu
display: inline
explore: balance_sheet
field: balance_sheet.select_fiscal_period

- name: Comparison Type
title: Comparison Type
type: field_filter
default_value: yoy
allow_multiple_values: false
required: true
ui_config:
type: dropdown_menu
display: inline
explore: balance_sheet
field: balance_sheet.select_comparison_type

- name: Custom Comparison Period
title: Custom Comparison Period
type: field_filter
default_value: ''
allow_multiple_values: false
required: false
ui_config:
type: dropdown_menu
display: inline
explore: balance_sheet
field: balance_sheet.select_custom_comparison_period

- name: Currency
title: Currency
type: field_filter
default_value: USD
allow_multiple_values: false
required: true
ui_config:
type: dropdown_menu
display: inline
explore: balance_sheet
field: balance_sheet.target_currency_tcurr

- name: Hierarchy
title: Hierarchy
type: field_filter
default_value: FPA1
allow_multiple_values: false
required: true
ui_config:
type: dropdown_menu
display: inline
explore: balance_sheet
field: balance_sheet.hierarchy_name

- name: Chart of Accounts
title: Chart of Accounts
type: field_filter
default_value: "{% if _user_attributes['sap_sql_flavor']=='S4' %}{% assign coa = 'YCOA'%}{%else%}{% assign coa = 'CA01' %}{% endif %}{{coa}}"
allow_multiple_values: false
required: true
ui_config:
type: dropdown_menu
display: inline
explore: balance_sheet
field: balance_sheet.chart_of_accounts

- name: Company
title: Company
type: field_filter
default_value: "%CENTRAL%"
allow_multiple_values: false
required: true
ui_config:
type: advanced
display: popover
explore: balance_sheet
field: balance_sheet.company_text

- name: Ledger
title: Ledger
type: field_filter
default_value: "0L - Leading Ledger"
allow_multiple_values: true
required: false
ui_config:
type: tag_list
display: inline
explore: balance_sheet
field: balance_sheet.ledger_name

- name: Top Hierarchy Level to Display
title: Top Hierarchy Level to Display
type: field_filter
default_value: '2'
allow_multiple_values: false
required: false
ui_config:
type: dropdown_menu
display: inline
explore: balance_sheet
listens_to_filters: []
field: balance_sheet_hierarchy_selection_sdt.parameter_pick_start_level
width: 24
height: 13
108 changes: 108 additions & 0 deletions LookML_Dashboard/balance_sheet_subtotal3_table.dashboard.lookml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
#########################################################{
# Balance Sheet financial report using Subtotals
# extends filters and title summary from balance_sheet_template
# customizations:
# - Comparison Type filter options set to only yoy, prior or custom (none removed as option)
# - Balance Sheet table based on looker_grid visualization type using derived amounts for
# reporting and comparison periods including derived differences (amount and %)
#########################################################}

- dashboard: balance_sheet_subtotal3_table
title: Financial Balance Sheet
layout: newspaper
preferred_viewer: dashboards-next
description: Using standard table with subtotals, reports Fiscal Period Cumulative
Amount in Global Currency for the selected hierarchy, chart
of accounts, company, fiscal period and comparison period (if any).
filters_location_top: false
extends: balance_sheet_template

elements:
- title: Balance Sheet
name: Balance Sheet
explore: balance_sheet
type: looker_grid
fields: [balance_sheet_fiscal_periods_selected_sdt.reporting_period_amount_in_global_currency, balance_sheet_fiscal_periods_selected_sdt.comparison_period_amount_in_global_currency,
balance_sheet_fiscal_periods_selected_sdt.difference_value, balance_sheet_fiscal_periods_selected_sdt.difference_percent, balance_sheet_hierarchy_selection_sdt.hier1_node_text,
balance_sheet_hierarchy_selection_sdt.hier2_node_text, balance_sheet_hierarchy_selection_sdt.hier3_node_text]
sorts: [balance_sheet_hierarchy_selection_sdt.hier1_node_text, balance_sheet_hierarchy_selection_sdt.hier2_node_text, balance_sheet_hierarchy_selection_sdt.hier3_node_text]
subtotals: [balance_sheet_hierarchy_selection_sdt.hier1_node_text, balance_sheet_hierarchy_selection_sdt.hier2_node_text]
total: true
show_view_names: false
show_row_numbers: true
transpose: false
truncate_text: true
hide_totals: false
hide_row_totals: false
size_to_fit: false
table_theme: white
limit_displayed_rows: false
enable_conditional_formatting: false
header_text_alignment: center
header_font_size: '12'
rows_font_size: '12'
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
show_sql_query_menu_options: false
show_totals: true
show_row_totals: true
truncate_header: false
title_hidden: true
minimum_column_width: 100
series_labels:
balance_sheet_hierarchy_selection_sdt.hier1_node_text: ' '
balance_sheet_hierarchy_selection_sdt.hier2_node_text: ' '
balance_sheet_hierarchy_selection_sdt.hier3_node_text: ' '
series_collapsed:
balance_sheet_hierarchy_selection_sdt.hier1_node_text: false
balance_sheet_hierarchy_selection_sdt.hier2_node_text: false
align: left
listen:
Fiscal Period: balance_sheet.select_fiscal_period
Comparison Type: balance_sheet.select_comparison_type
Custom Comparison Period: balance_sheet.select_custom_comparison_period
Hierarchy: balance_sheet.hierarchy_name
Chart of Accounts: balance_sheet.chart_of_accounts
Company Code: balance_sheet.company_text
Global Currency: balance_sheet.target_currency_tcurr
Ledger Name: universal_ledgers_md.ledger_id_name
Top Hierarchy Level: balance_sheet_hierarchy_selection_sdt.parameter_pick_start_level
row: 3
col: 0
width: 24
height: 8

- title: navigation
name: navigation
explore: balance_sheet
type: single_value
fields: [balance_sheet_navigation_ext.navigation]
filters:
balance_sheet_navigation_ext.navigation_focus_page: '1'
balance_sheet_navigation_ext.navigation_style: 'small'
show_single_value_title: false
show_comparison: false
listen:
Fiscal Period: balance_sheet_navigation_ext.filter1
Global Currency: balance_sheet_navigation_ext.filter2
Hierarchy: balance_sheet_navigation_ext.filter3
Chart of Accounts: balance_sheet_navigation_ext.filter4
Company Code: balance_sheet_navigation_ext.filter5
Ledger Name: balance_sheet_navigation_ext.filter6
Top Hierarchy Level: balance_sheet_navigation_ext.filter7
row: 11
col: 0
width: 24
height: 1

filters:
- name: Comparison Type
title: Comparison Type
ui_config:
type: dropdown_menu
display: inline
# remove none option to avoid display issues with comparison and variance columns
options:
- yoy
- prior
- custom
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#########################################################{
# Balance Sheet financial report using Subtotals but without Comparison to year ago, prior or custom fiscal periods
# extends filters and title summary from balance_sheet_template
# also extends Balance Sheet Table visualization from balance_sheet_subtotal3_table
# customizations:
# - Comparison Type filter options set to none
# - Custom Comparison Period default value and options set to none
# - Removed comparison-related fields from Balance Sheet table
#########################################################}

- dashboard: balance_sheet_subtotal3_table_no_comparison
title: Financial Balance Sheet
layout: newspaper
preferred_viewer: dashboards-next
description: "Using standard table with subtotals, reports Fiscal Period Cumulative Amount in Global Currency for the selected hierarchy, chart of accounts, company, and fiscal period."
filters_location_top: false
extends: [balance_sheet_template, balance_sheet_subtotal3_table]

filters:
- name: Comparison Type
title: Comparison Type
default_value: none
ui_config:
type: dropdown_menu
display: inline
# remove all options for comparisons
options:
- none

- name: Custom Comparison Period
title: Custom Comparison Period
type: field_filter
default_value: 'None'
allow_multiple_values: false
required: false
ui_config:
type: dropdown_menu
display: inline
options:
- None
explore: balance_sheet
field: balance_sheet.select_custom_comparison_period

elements:
- title: Balance Sheet
name: Balance Sheet
explore: balance_sheet
type: looker_grid
fields: [balance_sheet_fiscal_periods_selected_sdt.reporting_period_amount_in_global_currency,
balance_sheet_hierarchy_selection_sdt.hier1_node_text,
balance_sheet_hierarchy_selection_sdt.hier2_node_text, balance_sheet_hierarchy_selection_sdt.hier3_node_text]

- title: navigation
name: navigation
filters:
balance_sheet_navigation_ext.navigation_focus_page: '2'
Loading

0 comments on commit 68e7ce3

Please sign in to comment.