Sales Gap Analysis

  • Last update:August 09, 2023
  • Overview

    Background

    This document introduces how to compare the sales volume of the chosen category with others.

    Take the comparison between the sales of children's ornament and other categories as an example.

    Preview

    Through the dashboard below, you only need to select Children's ornament in the filter to compare its sales with other categories.

    预览.png

    Procedures

    Adding Data

    Create a subject and add the built-in data table Store sales statistics, as shown in the following figure.

    1.png

    Creating a Component

    To compare the sales volume of the chosen category with others, you can use the following formula: Sales gap = Sales of other categories - Sales of the chosen category.

    Adding a Parameter

    Add a text-type parameter. In subsequent steps, this parameter can be bound to the filter, so that you can choose a category in the filter to analyze its sales gap with other categories, as shown in the following figure.

    2.png

    Calculating the Sales of the Chosen Category

    Add a calculation indicator to calculate the sales of the chosen category, as shown in the following figure.

    3.png

    Formula
    DescriptionFunction Reference

    DEF(SUM-AGG(Sales Volume),[],[Category description=Chosen Category])

    • Aggregate calculation: SUM_AGG(Sales Volume)

    • Specified dimension: /

    • Filter condition: Category description=Chosen Category

    Calculate the sales of the chosen category.

    /

    Calculating the Sales Gap Between the Chosen Category and Others

    In the previous step, the sales of the chosen category have been calculated. Sales gap = Sales of each category - Sales of the chosen category.

    Add a calculation indicator and enter the formula DEF(SUM_AGG(Sales Volume),[Category description]) - Sales of Chosen Category.

    4.png

    Formula
    DescriptionFunction Reference

    DEF(SUM_AGG(Sales Volume),[Category description])

    • Aggregate calculation: SUM_AGG(Sales Volume)

    • Specified dimension: Category description

    Calculate the sales of each category.

    /

    DEF(SUM_AGG(Sales Volume), [Category description])-Sales of Chosen Category

    Sales of each category - Sales of the chosen category

    /

    Creating a Column Chart

    Set the chart type as Partitioned Column Chart, and drag Sales Volume and Sales Gap into Horizontal Axis and Category description into Vertical Axis.

    Drag Sales Volume and Sales Gap into the corresponding Label bars, and change their value format to Ten Thousand.

    5.png

    Creating a Dashboard

    Adding Components

    1. Drag the component created in previous steps into the dashboard.

    2. Drag a text list filter component into the dashboard, as shown in the following figure.

    6.png

    Editing the Text List Filter

    1. Bind the parameter Chosen Category to the filter, as shown in the following figure.

    过滤设置1.png

    2. There are two ways to add fields for selection:

    • Tick Custom Value List to manually enter options.

    • Add fields of other tables. In this document, the options are confined to the Category description field, which can also be found in the table BIDemo_Retail_Category Dimension. Therefore, you can add Category description from that table for selection, as shown in the following figure.

    过滤设置2.png

    Through previous steps, the dashboard showcasing the sales gap between the chosen category and others is created.

    Demonstration

    For the demonstration of this dashboard, see section "Concept."

     


    附件列表


    主题: Advanced Data Analysis
    Previous
    Next
    • 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