Bird
Raised Fist0
Power BIbi_tool~10 mins

KPI visual in Power BI - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the DAX measure to calculate total sales for the KPI visual.

Power BI
Total Sales = SUM([1])
Drag options to blanks, or click blank then click option'
ACustomers[Name]
BProducts[Category]
CSales[Date]
DSales[Amount]
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-numeric column like Sales[Date] inside SUM.
Using unrelated tables like Customers or Products.
2fill in blank
medium

Complete the DAX measure to calculate sales growth percentage for the KPI visual.

Power BI
Sales Growth % = DIVIDE([Total Sales] - [1], [1])
Drag options to blanks, or click blank then click option'
A[Total Sales]
B[Previous Year Sales]
C[Sales Target]
D[Average Sales]
Attempts:
3 left
💡 Hint
Common Mistakes
Using current total sales in both numerator and denominator.
Using unrelated measures like sales target.
3fill in blank
hard

Fix the error in the DAX measure to calculate average sales per customer for the KPI visual.

Power BI
Avg Sales per Customer = DIVIDE([Total Sales], [1])
Drag options to blanks, or click blank then click option'
ACOUNTROWS(Customers)
BCOUNT(Sales[CustomerID])
CSUM(Customers[CustomerID])
DCOUNTROWS(Sales)
Attempts:
3 left
💡 Hint
Common Mistakes
Counting sales rows instead of customers.
Using SUM on CustomerID which is not numeric.
4fill in blank
hard

Fill both blanks to create a KPI visual measure showing variance from target sales.

Power BI
Sales Variance = [Total Sales] [1] [Sales Target] [2]
Drag options to blanks, or click blank then click option'
A-
B+
C/
D*
Attempts:
3 left
💡 Hint
Common Mistakes
Adding instead of subtracting sales and target.
Multiplying instead of dividing.
5fill in blank
hard

Fill all three blanks to create a KPI measure that shows percentage of sales goal achieved.

Power BI
Sales Goal % = DIVIDE([1], [2]) [3] 100
Drag options to blanks, or click blank then click option'
A[Total Sales]
B[Sales Target]
C*
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Subtracting instead of multiplying by 100.
Dividing target by sales instead of sales by target.

Practice

(1/5)
1. What is the main purpose of a KPI visual in Power BI?
easy
A. To show a single important number with trend and target
B. To display detailed tables of data
C. To create complex data models
D. To write DAX formulas

Solution

  1. Step 1: Understand KPI visual purpose

    KPI visuals focus on showing one key number that matters most for quick insights.
  2. Step 2: Compare options

    Options A, B, and C describe other Power BI features, not KPI visuals.
  3. Final Answer:

    To show a single important number with trend and target -> Option A
  4. Quick Check:

    KPI visual = single key number with trend [OK]
Hint: KPI = one key number with trend and target [OK]
Common Mistakes:
  • Confusing KPI with tables or charts
  • Thinking KPI shows multiple numbers
  • Assuming KPI is for data modeling
2. Which of the following is the correct way to add a KPI visual in Power BI?
easy
A. Write a DAX formula named KPI()
B. Select the KPI visual icon from the Visualizations pane
C. Use the Table visual and rename it KPI
D. Add a slicer and set it to KPI mode

Solution

  1. Step 1: Identify how to add visuals

    Power BI lets you add visuals by selecting icons from the Visualizations pane.
  2. Step 2: Confirm KPI visual icon usage

    The KPI visual has its own icon; you do not write DAX or rename other visuals.
  3. Final Answer:

    Select the KPI visual icon from the Visualizations pane -> Option B
  4. Quick Check:

    Add KPI visual = select icon [OK]
Hint: Add visuals by clicking icons in Visualizations pane [OK]
Common Mistakes:
  • Trying to create KPI by DAX formula alone
  • Renaming other visuals to KPI
  • Using slicers to create KPI visuals
3. Given a KPI visual showing Sales Amount with a target of 100000, if the actual sales are 120000, what color and arrow direction will the KPI show by default?
medium
A. Green color with upward arrow
B. Yellow color with sideways arrow
C. Red color with downward arrow
D. Blue color with upward arrow

Solution

  1. Step 1: Understand KPI color and arrow logic

    When actual value exceeds target, KPI shows green color and upward arrow indicating good performance.
  2. Step 2: Apply to given values

    Actual sales 120000 > target 100000, so KPI shows green and upward arrow.
  3. Final Answer:

    Green color with upward arrow -> Option A
  4. Quick Check:

    Actual > Target = Green + Up arrow [OK]
Hint: Actual above target = green and up arrow [OK]
Common Mistakes:
  • Confusing red with good performance
  • Thinking arrow points down when above target
  • Assuming yellow color for above target
4. You created a KPI visual but it shows no trend line. What is the most likely reason?
medium
A. The KPI visual does not support trend lines
B. You forgot to set the target value
C. You did not add a Trend axis field
D. You used a table visual instead of KPI

Solution

  1. Step 1: Check KPI visual requirements

    KPI visuals need a Trend axis field to show the trend line over time or categories.
  2. Step 2: Identify missing field

    If no trend line appears, likely the Trend axis field was not added.
  3. Final Answer:

    You did not add a Trend axis field -> Option C
  4. Quick Check:

    No trend line = missing Trend axis field [OK]
Hint: Add Trend axis field to show trend line [OK]
Common Mistakes:
  • Assuming target value controls trend line
  • Thinking KPI visual cannot show trends
  • Using wrong visual type
5. You want to create a KPI visual that shows monthly sales progress with a target line and color changes for above or below target. Which steps should you follow?
hard
A. Add Sales to Filters, Date to Target goals, Target to Indicator
B. Add Date to Indicator, Sales to Trend axis, Target to Filters
C. Add Target to Indicator, Sales to Trend axis, Date to Legend
D. Add Sales measure to Indicator, add Date to Trend axis, add Target measure to Target goals

Solution

  1. Step 1: Assign fields correctly in KPI visual

    Indicator shows the main value (Sales), Trend axis shows time (Date), Target goals show the target measure.
  2. Step 2: Verify correct field placement

    Add Sales measure to Indicator, add Date to Trend axis, add Target measure to Target goals places Sales in Indicator, Date in Trend axis, and Target in Target goals, enabling progress and color changes.
  3. Final Answer:

    Add Sales measure to Indicator, add Date to Trend axis, add Target measure to Target goals -> Option D
  4. Quick Check:

    Indicator=Sales, Trend=Date, Target=Target [OK]
Hint: Indicator=Value, Trend=Time, Target=Goal for KPI [OK]
Common Mistakes:
  • Mixing up Indicator and Trend axis fields
  • Putting target in filters instead of Target goals
  • Using wrong fields for legend or filters
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard