反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Calculate the mode

  • Recent Updates: April 14, 2022
  • 1. Overview

    1.1 Expected effect

    Calculate the mode of the user's consumption amount in the data, and evaluate sales of the product. In the order of this product, the most consumed amount is "1000", which is the mode, and there are 6 records. As shown below:

    10.png

    1.2 Implementation ideas

    1) Calculate the number of records with the same amount. Group and summarize user orders by "Amount", and calculate count results after deduplication.

    2) Arrange the number of records in descending order to get the mode.

    2. Operation steps

    Data used in the example124.Calculate the mode.xls

    2.1 Add table

    Add the basic table that requires the mode, and then the data can be processed in the self-service dataset.

    1) Open "Data Preparation>Add Table>EXCEL Dataset". As shown below:

    1.png

    2) After adding the "Calculate the mode" table, click "OK". Complete the data upload. As shown below:

    2.png

    2.2 Create a new self-service dataset

    Use the uploaded table to create a new self-service dataset.

    Click "Add Table" under the "Package1" where the uploaded data is located, and click "Self-Service Dataset", as shown in the figure below:

    3 (1).png

    2.3 Select field

    Select fields in the table to be analyzed. Select the "Calculate the mode" table under "data list/Package1" and "Select All". As shown below:

    4.png

    2.4 Group Summary

    Then analyze the selected fields.

    1) Click "+" to add "Group Summary", as shown in the figure below:

    5.png

    2) Count the number of "Amount" records with different values, then group and summarize them by "Amount" (Amounts with the same value as a group), drag "User" to the Summary column, select "Distinct Count", and get the number of occurrences of different "Amount". As shown below:

    The details of settings of Group Summary are shown in the following table:

    Group

    Amount (Amounts with the same value as a group)

    Summary

    User (Distinct Count)

    6.png

    2.5 Sort

    Sort "User" in descending order, and the amount with the most records is the mode. Complete data processing.

    1) Click "+" to perform "Sort", as shown in the figure below:

    7.png

    2) "Add a sorting column > User", sort the number of occurrences of different amounts obtained by Group Summary before. As shown below:

    8.png

    3) After sorting "User" in "descending order", complete the mode calculation, set the table name, and click "Save". As shown below:

    9.png

    4) After "Save", close the self-service dataset interface and click "Update Data" to view the data processing results. As shown below:

    11.png

    3. View the effect

    To view the effect, please refer to section 1.1 of this article.

    Attachment List


    Theme: Data Processing
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

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

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

    不再提示

    10s后关闭