Which of the following JSON snippets correctly defines a Power BI color theme with three custom colors named "Primary", "Secondary", and "Accent"?
Look for the correct JSON format where colors are listed as an array of hex codes.
Power BI color themes use the "dataColors" property as an array of color hex codes. Option C correctly lists the colors as an array. Option C uses an invalid key and syntax. Option C uses an object instead of an array. Option C lists color names instead of hex codes.
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?
Colors are assigned in order to categories starting from the first color.
The first category (A) uses the first color (#0000FF), the second category (B) uses the second color (#00FF00), and the third category (C) uses the third color (#FF0000).
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?
Look for colors that are distinguishable by people with common types of color blindness.
Option D uses colors from the ColorBrewer palette designed for colorblind safety. Red and green combinations (Option D) are problematic for many colorblind users. Options C and D have colors that may be confusing or low contrast.
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" }
}Check the JSON syntax carefully for missing braces or misplaced colons.
Option A is missing braces around the "extra" object and has an invalid key-value syntax, causing a JSON syntax error. Options B, C, and D are valid JSON structures.
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?
Think about how to link data values to colors dynamically and consistently.
Option A uses data-driven conditional formatting, which dynamically assigns colors based on data values and ensures consistency across visuals and pages. Option A requires manual updates if categories change. Option A is tedious and error-prone. Option A does not guarantee consistent colors.