Bird
Raised Fist0
Power BIbi_tool~10 mins

Scatter plots in Power BI - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a scatter plot visual by selecting the correct field for the X-axis.

Power BI
ScatterPlot.XAxis = [1]
Drag options to blanks, or click blank then click option'
AOrderDate
BProductCategory
CCustomerName
DSalesAmount
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting a text field for the X-axis causes the scatter plot to not display correctly.
2fill in blank
medium

Complete the code to set the Y-axis field for the scatter plot.

Power BI
ScatterPlot.YAxis = [1]
Drag options to blanks, or click blank then click option'
AProfit
BRegion
COrderID
DCustomerSegment
Attempts:
3 left
💡 Hint
Common Mistakes
Using categorical fields for the Y-axis results in an invalid scatter plot.
3fill in blank
hard

Fix the error in the DAX measure that calculates the average sales for the scatter plot size.

Power BI
AverageSales = AVERAGE([1])
Drag options to blanks, or click blank then click option'
ACustomerName
BProductID
CSalesAmount
DOrderDate
Attempts:
3 left
💡 Hint
Common Mistakes
Using a text or date column inside AVERAGE causes a calculation error.
4fill in blank
hard

Fill both blanks to create a scatter plot with color representing category and size representing average sales.

Power BI
ScatterPlot.Color = [1]
ScatterPlot.Size = [2]
Drag options to blanks, or click blank then click option'
AProductCategory
BSalesAmount
CAverageSales
DCustomerRegion
Attempts:
3 left
💡 Hint
Common Mistakes
Using numeric fields for color or categories for size confuses the scatter plot.
5fill in blank
hard

Fill all three blanks to write a DAX measure that calculates total profit for a selected region and product category.

Power BI
TotalProfit = CALCULATE(SUM([1]), FILTER(ALL('Sales'), 'Sales'[Region] = [2] && 'Sales'[ProductCategory] = [3]))
Drag options to blanks, or click blank then click option'
AProfit
B"West"
C"Electronics"
DSalesAmount
Attempts:
3 left
💡 Hint
Common Mistakes
Using SalesAmount instead of Profit changes the measure meaning.
Forgetting quotes around text filter values causes errors.

Practice

(1/5)
1. What is the main purpose of a scatter plot in Power BI?
easy
A. To show the relationship between two numeric variables
B. To display data in a pie chart format
C. To list data in rows and columns
D. To create a map visualization

Solution

  1. Step 1: Understand scatter plot basics

    A scatter plot uses two numeric axes to show how two variables relate to each other.
  2. Step 2: Compare with other chart types

    Pie charts show parts of a whole, tables list data, and maps show locations, not relationships between numbers.
  3. Final Answer:

    To show the relationship between two numeric variables -> Option A
  4. Quick Check:

    Scatter plot = relationship between numbers [OK]
Hint: Scatter plots always compare two numeric values [OK]
Common Mistakes:
  • Confusing scatter plots with pie charts
  • Thinking scatter plots show categories only
  • Using scatter plots for non-numeric data
2. Which of the following is the correct way to assign data fields in a Power BI scatter plot?
easy
A. Assign date data to Size and text data to X Axis
B. Assign text data to X Axis and Y Axis, numeric data to Legend
C. Assign numeric data to Legend only
D. Assign numeric data to X Axis and Y Axis, optional Legend for categories

Solution

  1. Step 1: Identify correct field types for axes

    Scatter plots require numeric data on X and Y axes to plot points in 2D space.
  2. Step 2: Understand optional fields

    Legend can be used for categories (text), and Size can represent numeric values for point size.
  3. Final Answer:

    Assign numeric data to X Axis and Y Axis, optional Legend for categories -> Option D
  4. Quick Check:

    Numeric on axes + Legend for categories [OK]
Hint: X and Y axes must be numeric for scatter plots [OK]
Common Mistakes:
  • Putting text data on X or Y axes
  • Using Legend for numeric axes
  • Assigning date data incorrectly
3. Given a scatter plot with Sales on X Axis and Profit on Y Axis, what pattern would you expect if higher sales generally lead to higher profit?
medium
A. Points are randomly scattered with no pattern
B. Points form a horizontal line
C. Points trend upward from left to right
D. Points trend downward from left to right

Solution

  1. Step 1: Understand relationship between Sales and Profit

    If higher sales lead to higher profit, as sales increase (X axis), profit (Y axis) should also increase.
  2. Step 2: Visualize the scatter plot pattern

    This creates an upward trend from left (low sales) to right (high sales).
  3. Final Answer:

    Points trend upward from left to right -> Option C
  4. Quick Check:

    Positive correlation = upward trend [OK]
Hint: Positive correlation means points go up left to right [OK]
Common Mistakes:
  • Confusing upward and downward trends
  • Expecting horizontal line for correlation
  • Ignoring relationship direction
4. You created a scatter plot but all points appear in a single vertical line. What is the most likely cause?
medium
A. X Axis has the same value for all data points
B. Y Axis has the same value for all data points
C. Legend field is missing
D. Size field is assigned text data

Solution

  1. Step 1: Analyze vertical line pattern

    A vertical line means all points share the same X coordinate but vary in Y.
  2. Step 2: Identify cause in data assignment

    If X Axis data is constant for all points, they align vertically.
  3. Final Answer:

    X Axis has the same value for all data points -> Option A
  4. Quick Check:

    Same X value = vertical line [OK]
Hint: Same X values cause vertical line in scatter plot [OK]
Common Mistakes:
  • Thinking missing Legend causes vertical line
  • Confusing vertical with horizontal line causes
  • Assigning text to Size field causing this
5. You want to highlight different product categories in a scatter plot showing Sales (X Axis) vs Profit (Y Axis). Which field should you add to best achieve this?
hard
A. Add Product Category to X Axis
B. Add Product Category to Legend
C. Add Product Category to Size
D. Add Product Category to Y Axis

Solution

  1. Step 1: Understand how to differentiate categories visually

    Legend assigns colors or markers to categories, making groups visible in scatter plots.
  2. Step 2: Evaluate other field assignments

    Adding categories to Size or axes is incorrect because axes require numeric data, and Size is numeric for point size.
  3. Final Answer:

    Add Product Category to Legend -> Option B
  4. Quick Check:

    Legend = category colors in scatter plot [OK]
Hint: Use Legend for categories to color points [OK]
Common Mistakes:
  • Putting categories on numeric axes
  • Using Size for categories instead of numeric values
  • Not using Legend to differentiate groups
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