Bird
Raised Fist0
Power BIbi_tool~20 mins

Map visualizations in Power BI - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Map Visualization Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ visualization
intermediate
2:00remaining
Choosing the correct map type for sales data

You have sales data by country and want to show total sales geographically. Which map visualization type in Power BI best shows sales distribution by country with clear color intensity differences?

AShape map showing sales as pie charts on each country
BBubble map with bubbles sized by sales volume on a blank map
CTable visual listing countries and sales values
DChoropleth map (filled map) showing countries colored by sales volume
Attempts:
2 left
💡 Hint

Think about which map type uses color fill to represent values across regions.

❓ dax_lod_result
intermediate
2:00remaining
Calculate total sales by city ignoring filters

Given a sales table with columns City and SalesAmount, which DAX measure correctly calculates total sales for each city ignoring any slicers or filters on City?

Power BI
Total Sales All Cities = CALCULATE(SUM(Sales[SalesAmount]), ALL(Sales[City]))
ATotal Sales All Cities = CALCULATE(SUM(Sales[SalesAmount]), FILTER(Sales, Sales[City] <> ""))
BTotal Sales All Cities = SUM(Sales[SalesAmount])
CTotal Sales All Cities = CALCULATE(SUM(Sales[SalesAmount]), ALL(Sales[City]))
DTotal Sales All Cities = CALCULATE(SUM(Sales[SalesAmount]), REMOVEFILTERS(Sales[City]))
Attempts:
2 left
💡 Hint

Use a function that removes filters on the City column inside CALCULATE.

❓ data_modeling
advanced
2:30remaining
Modeling geographic hierarchy for map drill-down

You want to create a map visualization that allows users to drill down from Country to State to City. What is the best way to model this geographic hierarchy in Power BI?

ACreate separate tables for Country, State, City with no relationships and use them independently
BCreate a single table with columns Country, State, City and define a hierarchy in the Fields pane
CUse only the City column with full names including State and Country concatenated
DCreate a table with only Country and City columns and ignore State
Attempts:
2 left
💡 Hint

Think about how Power BI hierarchies work in the Fields pane.

🎯 Scenario
advanced
2:30remaining
Improving map performance with many data points

Your map visualization slows down when showing thousands of city points. Which approach best improves performance without losing key insights?

AAggregate data to show sales by State instead of City to reduce points
BUse a bubble map with larger bubbles for each city
CAdd more detailed city-level data to increase granularity
DRemove all filters and show all data points at once
Attempts:
2 left
💡 Hint

Think about reducing the number of points shown to improve speed.

🔧 Formula Fix
expert
3:00remaining
Identify the error in this DAX measure for map tooltip

Given this DAX measure intended to show average sales per city in a map tooltip, what error will it cause?

Avg Sales Tooltip = AVERAGE(Sales[SalesAmount], Sales[City])
Power BI
Avg Sales Tooltip = AVERAGE(Sales[SalesAmount], Sales[City])
ASyntaxError: AVERAGE function only takes one argument
BReturns average sales correctly grouped by city
CTypeError: Cannot average text values in City column
DReturns total sales instead of average
Attempts:
2 left
💡 Hint

Check the number of arguments AVERAGE accepts.

Practice

(1/5)
1. What is the main purpose of a map visualization in Power BI?
easy
A. To create pie charts for categorical data
B. To show data by location and reveal geographic patterns
C. To display only numerical trends over time
D. To filter data based on user input

Solution

  1. Step 1: Understand map visualization purpose

    Map visuals display data points on a geographic map to show location-based patterns.
  2. Step 2: Compare options with map use

    Only To show data by location and reveal geographic patterns describes showing data by location and geographic patterns, which matches map visuals.
  3. Final Answer:

    To show data by location and reveal geographic patterns -> Option B
  4. Quick Check:

    Map visuals = geographic data display [OK]
Hint: Maps always show data by location and geography [OK]
Common Mistakes:
  • Confusing map visuals with charts for trends
  • Thinking maps only show numbers without location
  • Mixing map visuals with filtering tools
2. Which of the following is the correct way to assign fields in a Power BI map visualization?
easy
A. Assign a numeric field to Location and a geographic field to Size
B. Assign a text field to Size and a numeric field to Location
C. Assign a date field to Location and a text field to Size
D. Assign a geographic field to Location and a numeric field to Size or Color

Solution

  1. Step 1: Recall field roles in map visuals

    Geographic fields (like city, country) go to Location; numeric fields (like sales) go to Size or Color.
  2. Step 2: Match options with correct field assignment

    Only Assign a geographic field to Location and a numeric field to Size or Color correctly assigns geographic fields to Location and numeric fields to Size or Color.
  3. Final Answer:

    Assign a geographic field to Location and a numeric field to Size or Color -> Option D
  4. Quick Check:

    Location = geographic, Size/Color = numeric [OK]
Hint: Location needs geography; Size/Color needs numbers [OK]
Common Mistakes:
  • Putting numbers in Location field
  • Assigning text fields to Size
  • Confusing date fields with geographic fields
3. Given a dataset with sales by city, what will happen if you create a map visual with City in Location and Sales in Size?
medium
A. The map will show bubbles sized by sales amount at each city location
B. The map will show a heatmap with colors representing sales
C. The map will show a table of sales values without geographic points
D. The map will produce an error because Size cannot be numeric

Solution

  1. Step 1: Understand field roles in map visual

    City is geographic, so it sets the location; Sales is numeric, so it controls bubble size.
  2. Step 2: Predict map output

    The map will display bubbles on each city sized proportionally to sales amount, matching The map will show bubbles sized by sales amount at each city location.
  3. Final Answer:

    The map will show bubbles sized by sales amount at each city location -> Option A
  4. Quick Check:

    City = location, Sales = bubble size [OK]
Hint: Numeric Size creates bubble sizes on map [OK]
Common Mistakes:
  • Expecting a heatmap instead of bubbles
  • Thinking Size cannot be numeric
  • Confusing map with table visual
4. You created a map visual but it shows all data points clustered in one spot instead of their real locations. What is the most likely cause?
medium
A. The Location field contains non-geographic text values
B. The Size field is empty
C. The map visual does not support multiple data points
D. The data contains duplicate numeric values

Solution

  1. Step 1: Analyze symptom of clustered points

    If all points appear in one spot, Power BI likely cannot recognize the Location field as geographic data.
  2. Step 2: Identify cause from options

    Only The Location field contains non-geographic text values correctly identifies the cause, as non-geographic text values prevent proper mapping, causing clustering.
  3. Final Answer:

    The Location field contains non-geographic text values -> Option A
  4. Quick Check:

    Non-geographic Location = clustered points [OK]
Hint: Check Location field type if points cluster [OK]
Common Mistakes:
  • Blaming Size field for location issues
  • Assuming map can't show multiple points
  • Ignoring data type of Location field
5. You want to create a map visualization showing sales by country with bubble size representing sales and bubble color representing profit margin. Which setup is best in Power BI?
hard
A. Assign Sales to Location, Country to Size, and Profit Margin to Color
B. Assign Profit Margin to Location, Sales to Color, and Country to Size
C. Assign Country to Location, Sales to Size, and Profit Margin to Color
D. Assign Country to Size, Sales to Color, and Profit Margin to Location

Solution

  1. Step 1: Identify correct field roles for map

    Country is geographic and belongs in Location; Sales is numeric for bubble Size; Profit Margin is numeric for bubble Color.
  2. Step 2: Match options with correct assignments

    Only Assign Country to Location, Sales to Size, and Profit Margin to Color assigns fields correctly: Country to Location, Sales to Size, Profit Margin to Color.
  3. Final Answer:

    Assign Country to Location, Sales to Size, and Profit Margin to Color -> Option C
  4. Quick Check:

    Location = geography, Size = numeric, Color = numeric [OK]
Hint: Location = geography; Size and Color = numeric fields [OK]
Common Mistakes:
  • Putting numeric fields in Location
  • Mixing Size and Color roles
  • Assigning geography to Size or Color
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard