0
0
Power BIbi_tool~20 mins

Conditional formatting in tables in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Power BI Conditional Formatting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Conditional Formatting Color Based on Sales Value
You want to highlight sales values greater than 1000 in green in a Power BI table using conditional formatting. Which DAX expression correctly returns TRUE for sales above 1000 to apply the green color?
ASWITCH([Sales] > 1000, TRUE, TRUE, FALSE)
BIF([Sales] >= 1000, TRUE(), FALSE())
CIF([Sales] > 1000, TRUE(), FALSE())
D[Sales] > 1000
Attempts:
2 left
💡 Hint
Think about what expression returns TRUE or FALSE directly for conditional formatting.
Function Choice
intermediate
2:00remaining
Choosing the Right Function for Conditional Formatting
You want to apply conditional formatting to highlight the top 10% of sales in a Power BI table. Which DAX function is best suited to create a measure that returns TRUE for the top 10% sales?
APERCENTILEX.INC(ALL('Sales'), [Sales], 0.9)
BRANKX(ALL('Sales'), [Sales]) <= COUNTROWS(ALL('Sales')) * 0.1
CTOPN(10, 'Sales', [Sales], DESC)
DFILTER('Sales', [Sales] >= 0.9)
Attempts:
2 left
💡 Hint
Ranking sales and comparing to 10% count helps identify top 10%.
🎯 Scenario
advanced
2:00remaining
Applying Gradient Color Based on Profit Margin
You want to apply a gradient color scale in a Power BI table to the 'Profit Margin' column, where low margins are red and high margins are green. Which conditional formatting setting should you use?
AFormat by Color scale, set minimum color red, maximum color green, based on 'Profit Margin' values
BFormat by Rules, set rule: if 'Profit Margin' < 0.2 then red, else green
CFormat by Background color, set fixed color green for all rows
DFormat by Field value, select a measure that returns color names
Attempts:
2 left
💡 Hint
Gradient colors require color scale formatting, not fixed rules.
data_analysis
advanced
2:00remaining
Identifying Rows with Missing Data Using Conditional Formatting
You want to highlight rows in a Power BI table where the 'Customer Email' field is blank or missing. Which DAX expression correctly identifies these rows for conditional formatting?
ALEN([Customer Email]) = 0
B[Customer Email] = ""
COR(ISBLANK([Customer Email]), [Customer Email] = "")
DISBLANK([Customer Email])
Attempts:
2 left
💡 Hint
Missing data can be blank or empty string; check both conditions.
🧠 Conceptual
expert
2:00remaining
Understanding Conditional Formatting Evaluation Context
In Power BI, when applying conditional formatting using a DAX measure on a table visual, what evaluation context does the measure use for each cell?
AThe measure evaluates in the context of the current row and all filters applied to the table visual
BThe measure evaluates only once for the entire table, ignoring row context
CThe measure evaluates in the context of the first row only
DThe measure evaluates in the context of all rows combined, ignoring filters
Attempts:
2 left
💡 Hint
Conditional formatting changes per row based on that row's data and filters.