0
0
Power BIbi_tool~8 mins

VALUES and DISTINCT in Power BI - Dashboard Guide

Choose your learning style9 modes available
Dashboard Mode - VALUES and DISTINCT
Business Question

Which unique product categories and their sales amounts are in our sales data? We want to see distinct categories and total sales per category.

Sample Data
OrderIDProductCategorySalesAmount
1001Electronics200
1002Furniture450
1003Electronics300
1004Clothing150
1005Furniture200
1006Clothing100
Dashboard Components
  • KPI Card: Total Sales
    Formula: Total Sales = SUM(Sales[SalesAmount])
    Result: 1400
  • Table Visual 1: Distinct Product Categories
    Formula: Distinct Categories = DISTINCT(Sales[ProductCategory])
    Shows unique categories: Electronics, Furniture, Clothing
  • Table Visual 2: Product Categories with Total Sales
    Formula: Total Sales by Category = SUM(Sales[SalesAmount]) grouped by ProductCategory
    Results:
    - Electronics: 500
    - Furniture: 650
    - Clothing: 250
  • Table Visual 3: VALUES function output
    Formula: VALUES(Sales[ProductCategory])
    Shows unique categories same as DISTINCT
Dashboard Layout
+----------------------+---------------------------+
|      Total Sales      |   Distinct Categories      |
|       (KPI Card)      |       (Table Visual 1)     |
+----------------------+---------------------------+
|       Sales by Category Table (Table Visual 2)       |
+-----------------------------------------------------+
|       VALUES Output Table (Table Visual 3)           |
+-----------------------------------------------------+
Interactivity

Applying a slicer filter on ProductCategory updates all tables and the KPI card to show data only for the selected categories. For example, selecting 'Electronics' filters the sales and recalculates totals accordingly.

Self Check

If you add a filter to show only Furniture category, which components update and what results do they show?

  • Total Sales KPI: Updates to 650
  • Distinct Categories Table: Shows only 'Furniture'
  • Sales by Category Table: Shows 'Furniture' with 650 sales
  • VALUES Output Table: Shows only 'Furniture'
Key Result
Dashboard showing unique product categories and their total sales using VALUES and DISTINCT functions.