Bird
0
0

You want to create a color theme JSON file that defines three colors: primary (#1A73E8), secondary (#E37400), and background (#F5F5F5). Which JSON snippet correctly defines these colors for Power BI?

hard📝 Scenario Q15 of 15
Power BI - Formatting and Design
You want to create a color theme JSON file that defines three colors: primary (#1A73E8), secondary (#E37400), and background (#F5F5F5). Which JSON snippet correctly defines these colors for Power BI?
A{ "name": "CustomTheme", "dataColors": ["#1A73E8", "#E37400"], "background": "#F5F5F5", "visualStyles": {} }
B{ "themeName": "CustomTheme", "colors": {"primary": "#1A73E8", "secondary": "#E37400", "background": "#F5F5F5"} }
C{ "name": "CustomTheme", "dataColors": ["#1A73E8", "#E37400"] "background": "#F5F5F5" }
D{ "name": "CustomTheme", "dataColors": ["#1A73E8", "#E37400"], "backgroundColor": "#F5F5F5" }
Step-by-Step Solution
Solution:
  1. Step 1: Check required keys for Power BI theme

    Power BI themes use name, dataColors for main colors, and background for background color.
  2. Step 2: Validate JSON keys and structure

    { "name": "CustomTheme", "dataColors": ["#1A73E8", "#E37400"], "background": "#F5F5F5", "visualStyles": {} } correctly uses name, dataColors array, and background key. It also includes visualStyles which is optional but valid.
  3. Final Answer:

    { "name": "CustomTheme", "dataColors": ["#1A73E8", "#E37400"], "background": "#F5F5F5", "visualStyles": {} } -> Option A
  4. Quick Check:

    Correct keys and hex colors = { "name": "CustomTheme", "dataColors": ["#1A73E8", "#E37400"], "background": "#F5F5F5", "visualStyles": {} } [OK]
Quick Trick: Use 'name', 'dataColors', and 'background' keys in JSON [OK]
Common Mistakes:
  • Using wrong key names like 'colors' or 'backgroundColor'
  • Missing required keys like 'dataColors'
  • Incorrect JSON structure or missing commas

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes