反馈已提交

网络繁忙

Self-Looping Column (Hierarchy Based on Two Columns of Data)

  • Last update:  2024-03-14
  • Overview

    Version

    Functional ChangeFunctional Change
    6.0/

    Application Scenario

    The function can be used when the institution code in the institution code table has two columns: the current institution number and the direct superior institution number.

    Take the Bank Institution table as an example. The institution code JGID of the Bank of Jiang Dantu New District Branch is 7018, and its direct superior institution code PARENT_ID is 0711, which means that the Bank of Jiang Dantu New District Branch is directly subordinate to the Bank of Jiangyuan City Branch.

     1.png

     

    A hierarchical relationship helps classify various banks into different levels and make clear their hierarchical relationships, as shown in the following figure.

     2.png

    Usage Scope

    The function applies to a table with two columns of its own ID and parent ID. If the table only has one column that can be used to describe the hierarchical relationship, you can refer to Self-Looping Column (Hierarchy Based on One Columns of Data).

    The Self-Looping Column function is available to basic tables and not supported for self-service datasets and direct-connected data tables.

    Example

    Field Settings

    1. Select the database BIdemo_Bank_Institution in Public Data, and click Edit, as shown in the following figure.

    3.png

    Field Description

    JGIDBank ID
    PARENT_IDDirect superior bank's ID

    2. You need to ensure that both ID columns for hierarchy building are text fields. If not, you need to convert their field types into Text, as shown in the following figure.

     4.png

    Self-Looping Column

    1. Click Self-Looping Column.

     5.png

    2. Set the conditions required for the self-looping column, and click Build Association.


    Self-Looping Column TypeSet Self-Looping Column Type to Hierarchy Based on Two Columns of Data.
    ID Column as Hierarchical DependenceSelect the bank ID.
    Parent ID ColumnSelect the ID column of the parent or superior bank.
    Hierarchical Result FieldSelect the name of the bank or institution.

    6.png

    4. FineBI automatically builds the hierarchical relationship of the bank, with a total of five levels. Modify their names to Head Office, First-level Branch, Second-level Branch, First-level Subbranch, and Second-level Subbranch, as shown in the following figure.

     7.png

    After updating the table, you can use the hierarchical fields generated by the self-looping columns to create self-service datasets and new dashboards.

    Effect Display

    For details, see section "Application Scenario."

     


    附件列表


    主题: Data Center
    • Helpful
    • Not helpful
    • Only read

    feedback

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭