0
0
Power BIbi_tool~20 mins

Color themes in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Color Theme Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Color Theme JSON Structure

Which of the following JSON snippets correctly defines a Power BI color theme with three custom colors named "Primary", "Secondary", and "Accent"?

A{ "name": "CustomTheme", "dataColors": { "Primary": "#FF5733", "Secondary": "#33FF57", "Accent": "#3357FF" } }
B{ "themeName": "CustomTheme", "colors": ["Primary": "#FF5733", "Secondary": "#33FF57", "Accent": "#3357FF"] }
C{ "name": "CustomTheme", "dataColors": ["#FF5733", "#33FF57", "#3357FF"] }
D{ "name": "CustomTheme", "dataColors": ["Primary", "Secondary", "Accent"] }
Attempts:
2 left
💡 Hint

Look for the correct JSON format where colors are listed as an array of hex codes.

dax_lod_result
intermediate
1:30remaining
Effect of Color Theme on Visual Measure Display

You apply a color theme with the following dataColors: ["#0000FF", "#00FF00", "#FF0000"]. You have a bar chart with three categories: A, B, and C. Which color will category B's bar use by default?

A#0000FF (Blue)
B#00FF00 (Green)
C#FF0000 (Red)
DDefault gray color
Attempts:
2 left
💡 Hint

Colors are assigned in order to categories starting from the first color.

visualization
advanced
2:30remaining
Choosing Accessible Color Themes for Reports

You want to create a Power BI report color theme that is friendly for colorblind users. Which color palette below is best suited for this purpose?

A["#800080", "#008000", "#000080"] (Purple, Green, Navy)
B["#FF0000", "#00FF00", "#0000FF"] (Red, Green, Blue)
C["#FF69B4", "#FFD700", "#00FFFF"] (Pink, Gold, Cyan)
D["#0072B2", "#D55E00", "#E69F00"] (Blue, Vermilion, Orange)
Attempts:
2 left
💡 Hint

Look for colors that are distinguishable by people with common types of color blindness.

🔧 Formula Fix
advanced
2:30remaining
Identifying Error in Custom Color Theme JSON

Which option contains a syntax error that will cause Power BI to reject the custom color theme JSON file?

{
  "name": "MyTheme",
  "dataColors": ["#123456", "#654321", "#abcdef"],
  "background": "#FFFFFF",
  "foreground": "#000000",
  "tableAccent": "#FF00FF",
  "extra": { "highlight": "#FFFF00" }
}
A{ "name": "MyTheme", "dataColors": ["#123456", "#654321", "#abcdef"], "background": "#FFFFFF", "foreground": "#000000", "tableAccent": "#FF00FF", "extra": "highlight": "#FFFF00" }
B{ "name": "MyTheme", "dataColors": ["#123456", "#654321", "#abcdef"], "background": "#FFFFFF", "foreground": "#000000", "tableAccent": "#FF00FF", "extra": { "highlight": "#FFFF00" } }
C{ "name": "MyTheme", "dataColors": ["#123456", "#654321", "#abcdef"], "background": "#FFFFFF", "foreground": "#000000", "tableAccent": "#FF00FF" }
D} } "00FFFF#" :"thgilhgih" { :"artxe" ,"FF00FF#" :"tneccAelbat" ,"000000#" :"dnuorgerof" ,"FFFFFF#" :"dnuorgkcab" ,]"fedcba#" ,"123456#" ,"654321#"[ :"sroloCatad" ,"emehTyM" :"eman" {
Attempts:
2 left
💡 Hint

Check the JSON syntax carefully for missing braces or misplaced colons.

🎯 Scenario
expert
3:00remaining
Designing a Dynamic Color Theme for Multiple Report Pages

You manage a Power BI report with multiple pages, each representing a different product category. You want to create a color theme that automatically assigns a unique color to each category and ensures consistent colors across all pages without manually editing each visual. Which approach best achieves this?

AUse a calculated column in the data model to assign color hex codes and bind colors dynamically in visuals using conditional formatting.
BManually set colors for each visual on every page to match category colors.
CApply the default Power BI theme and rely on automatic color assignment per visual.
DDefine a custom color theme JSON with a long dataColors array listing all category colors in order.
Attempts:
2 left
💡 Hint

Think about how to link data values to colors dynamically and consistently.