0
0
Power BIbi_tool~20 mins

KPI visual in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
KPI Visual Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate Total Sales for Current Year

You have a sales table with a column SalesAmount and a date column OrderDate. You want to create a measure that calculates the total sales for the current year only.

Which DAX measure will correctly calculate this?

ATotal Sales CY = SUMX(FILTER(Sales, YEAR(Sales[OrderDate]) = YEAR(TODAY())), Sales[SalesAmount])
BTotal Sales CY = CALCULATE(SUM(Sales[SalesAmount]), FILTER(Sales, YEAR(Sales[OrderDate]) = YEAR(TODAY())))
CTotal Sales CY = CALCULATE(SUM(Sales[SalesAmount]), YEAR(Sales[OrderDate]) = YEAR(TODAY()))
DTotal Sales CY = SUM(Sales[SalesAmount])
Attempts:
2 left
💡 Hint

Use CALCULATE with FILTER to apply a row context filter on the date column.

visualization
intermediate
1:30remaining
Best Practice for KPI Visual Color Usage

You want to create a KPI visual in Power BI that shows sales growth. Which color usage follows best practices for accessibility and clarity?

AUse red for positive growth and green for negative growth.
BUse random bright colors for each KPI to attract attention.
CUse only blue shades for all KPI values to keep it simple.
DUse green for positive growth, red for negative growth, and ensure color contrast meets accessibility standards.
Attempts:
2 left
💡 Hint

Think about common color meanings and accessibility.

data_modeling
advanced
2:30remaining
Modeling Data for KPI Visual with Multiple Date Filters

You have sales data and a separate date table. You want to create a KPI visual that shows sales for the current month and compares it to the previous month. What is the best data modeling approach?

ACreate a relationship between sales and date tables on the date column, mark the date table as a date table, and use time intelligence DAX functions.
BKeep sales and date tables unlinked and use LOOKUPVALUE in measures to get dates.
CMerge sales and date tables into one big table to simplify filtering.
DCreate multiple disconnected date tables for each KPI and use USERELATIONSHIP in measures.
Attempts:
2 left
💡 Hint

Think about how Power BI uses relationships and date tables for time intelligence.

🔧 Formula Fix
advanced
2:00remaining
Identify the Error in KPI Measure Calculation

Given this DAX measure for a KPI visual:

Sales Growth % = DIVIDE(SUM(Sales[SalesAmount]) - SUM(Sales[SalesAmount]), SUM(Sales[SalesAmount]), 0)

What is the main issue causing incorrect KPI output?

AThe numerator subtracts the same sum from itself, always resulting in zero.
BThe measure lacks a FILTER to limit data to current and previous periods.
CSUM function is used incorrectly with two arguments.
DThe DIVIDE function is missing the alternate result parameter.
Attempts:
2 left
💡 Hint

Look carefully at the subtraction in the numerator.

🎯 Scenario
expert
3:00remaining
Designing a KPI Visual for Multi-Category Sales Growth

You need to create a KPI visual that shows sales growth for multiple product categories side by side. The data model has a sales table and a product category table. How should you design the KPI visual and measures to best support this?

ACreate a calculated column in sales table for growth and use a card visual for each category.
BCreate separate KPI visuals for each category with hardcoded filters in each visual.
CCreate a measure that calculates sales growth filtered by the selected category, then use a matrix visual with categories as rows and the KPI measure as values.
DUse a slicer to select one category at a time and show a single KPI card visual.
Attempts:
2 left
💡 Hint

Think about dynamic filtering and scalability for multiple categories.