Setting Data Group and Format

  • Last update:  2023-03-17
  • Overview

    Application Scenarios

    After preparing the data table, you may need to group and display the date fields in different ways and formats.

    For example, if you want to group date fields by year, Year-Month, and Year Month Day, there are three formats for displaying.

    I)IBX%{]0V)XVBV{M~CSYXO.png

    Functions

    Click the dropdown box in the analysis section to modify the grouping of date fields. There are multiple classification ways: Year Month Day, Number of weeks in year, Year-Month, Year Quarter, year, Quarter, Month, Month Day, Weeks, Week, Sun, Hour, Minute, Second, Year Month Day Hour, Year Month Day Hour Minute, Year Month Day Hour Minute Second.

    Click the dropdown in the analysis column to modify the time format. There are three time formats: yyyy-MM-dd, yyyy year MM month dd day, and yyy/MM/dd.

    Setting Date Grouping

    Use the sample data provided in the demo Order Detail Table.

    Setting Date Grouping

    In the Component editing interface, you can select the Order Date field and drag it into the Dimensions bar, and select the Order Amount field and drag it into the Indicators bar.

    $69LE%H9{T0RZI3YOG9]0}6.png

    There are 17 ways to group dates: Year Month Day, Number of weeks in year, Year-Month, Year Quarter, year, Quarter, Month, Month Day, Weeks, Week, Sun, Hour, Minute, Second, Year Month Day Hour, Year Month Day Hour Minute, Year Month Day Hour Minute Second. You can switch the display format of the date for any grouping method of dates.

    UQ])%_579PKQMHTGJAK%8T5.png

    Number of Weeks in a Year and Weeks

    Number of weeks in year

    The week starts on Monday: The first week of the year is the one that includes the first Thursday of the year, which may span two calendar years.

    The week starts on Sunday: The first week of the year is the one that includes the first Wednesday of the year, which may span two calendar years.

    Weeks

    The week begins on Monday and ends on Sunday. If January 1st is not Monday, the first week is the one that begins from January 1st to the first Sunday of that month (within the same year). The second week begins on the following Monday.

    The week begins on Sunday and ends on Saturday. If January 1st is not Sunday, the first week is the one that begins from January 1st to the first Sunday of that month (within the same year). The second week begins on the following Sunday.

    Take 2021/01/03 as an example:

    If you set Monday as the first day of the week in the platform:

    Date

    2021-01-03

    Description

    2021-01-04

    2021-01-05

    Number of weeks in year

    2020-53

    The first Thursday of 2021 is January 7th, so the first week is from January 4th to 10th.

    2021-01

    2021-01

    Weeks

    1

    January 1st is not Monday, so the first week is from January 1st to 3rd.

    2

    2

    If you set Sunday as the first day of the week in the platform:

    Date

    2021-01-03

    Description

    2021-01-04

    2021-01-05

    Number of weeks in year

    2021-01

    The first Thursday of 2021 is January 7th, so the first week is from January 3rd to 9th.

    2021-01

    2021-01

    Weeks

    2

    January 1st is not Sunday, so the first week is from January 1st to 2nd and the second week is from January 3rd to 9th.

    2

    2

    Setting Time Format

    If you want to set the time format of Order Date as 1990-01-01(yyyy-MM-dd), select the order date field in Dimensions and choose yyyy-MM-dd in Time Format in the dropdown list.

    VTHP1{DJ2@KZ8L{HC1UN%HJ.png

    Setting Display Name

    You can either select Set Display Name or double-click on the Order Date field to modify it.

    4JS~]_}KM%7Y4T0~J4XVG}S.png

    附件列表


    主题: Creating a Visual Component
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy