By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
(Background, Font, Icons, KPI Indicators)
Conditional formatting in Power BI lets you dynamically change the appearance of visuals (tables, matrices, cards, etc.) based on data rules. Think of it like a traffic light for your reports: - Green = Good (e.g., sales above target).- Red = Bad (e.g., inventory below threshold).- Yellow = Warning (e.g., approaching budget limit).
Why it matters in production:- Stakeholders skim reports in seconds. If your data doesn’t visually scream what’s important, they’ll miss critical insights.- Manual formatting is a time sink. If you hardcode colors, you’ll waste hours updating reports when thresholds change (e.g., "Now 80% is the new 90%").- Dashboards without conditional formatting look amateur. Clients and executives expect dynamic, data-driven visuals—not static Excel exports.
Real-world scenario:You’re building a sales dashboard for a retail chain. The VP of Sales wants to see: - Stores in the red (sales < 80% of target) highlighted immediately.- Top performers (sales > 120% of target) flagged with a ? icon.- Trends over time where negative growth is bolded in red.
Without conditional formatting, you’d manually color-code every cell—or worse, they’d miss a crisis until it’s too late.
U+1F4C8
IF([Sales] < [Target], "Red", "Green")
We’ll format a matrix visual to highlight: 1. Stores below target (red background).2. Top performers (green font + ? icon).3. Negative growth (bold red font).
SalesData.xlsx
Store
Sales
Target
Growth%
#FF6B6B
#FFFFFF
Verification: Stores with Sales < Target now have a red background.
Sales < Target
#2ECC71
#000000
Add Icons: 1. In the Format pane, go to Conditional formatting > Icons.2. Select the Sales field.3. Set: - Icon layout: Right of data - Rules: - If value > 1.2 * [Target], show ? (unicode: U+1F3C6). - Else, show no icon.4. Click OK.
U+1F3C6
Verification: Top-performing stores now have green text + a ? icon.
#E74C3C
Verification: Negative growth values are bold and red.
Verification: The card now shows a directional arrow based on growth.
U+26A0
Thresholds[MinSales] = 80
SalesDashboard_v2_ConditionalFormatting.pbix
Trap: Font color is for text, not cell backgrounds.
Icon rules: "Which icon set should you use to show a ? for values below 50?"
U+1F6A8
Trap: Web icons require URLs and may not load in published reports.
DAX vs. rules: "When should you use a DAX measure for conditional formatting?"
Trap: DAX is overkill for simple rules (e.g., "If value > 100").
KPI indicators: "Which visual is best for showing a directional arrow based on growth?"
RegionThreshold[MinSales]
You have a survey results table with a column [SatisfactionScore] (1-5). Format the table so: - Scores 1-2 = red background + ❌ icon.- Scores 3 = yellow background.- Scores 4-5 = green background + ✅ icon.
[SatisfactionScore]
Solution: 1. Add a matrix visual with [SatisfactionScore] in Values.2. Go to Conditional formatting > Background color: - Rules: - If value <= 2, red (#FF6B6B). - If value = 3, yellow (#F1C40F). - If value >= 4, green (#2ECC71).3. Go to Conditional formatting > Icons: - Rules: - If value <= 2, show ❌ (unicode: U+274C). - If value >= 4, show ✅ (unicode: U+2705). - Else, no icon.
#F1C40F
U+274C
U+2705
Why it works: - Background color handles the 3-tier system (red/yellow/green).- Icons add visual cues for extreme values (❌/✅).
[Sales] < [Target]
[Growth%] < 0
[Target]
[Score] >= 4
[Value] > 0
[ColorCode]
#FF0000
Color = IF([Sales] < [Target], "#FF6B6B", "#FFFFFF")
#27AE60
U+XXXX
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.