Bird
Raised Fist0
Power BIbi_tool~20 mins

MIN and MAX in Power BI - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
MIN and MAX Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ dax_lod_result
intermediate
2:00remaining
Calculate the minimum sales amount per product category

You have a sales table with columns ProductCategory and SalesAmount. You want to create a measure that returns the minimum sales amount for each product category.

Which DAX expression will correctly calculate this?

AMinSalesPerCategory = MAX(Sales[SalesAmount])
BMinSalesPerCategory = MIN(Sales[SalesAmount])
CMinSalesPerCategory = CALCULATE(MAX(Sales[SalesAmount]), ALL(Sales))
DMinSalesPerCategory = CALCULATE(MIN(Sales[SalesAmount]), ALLEXCEPT(Sales, Sales[ProductCategory]))
Attempts:
2 left
💡 Hint

Think about how to keep the filter on ProductCategory while calculating the minimum.

❓ visualization
intermediate
1:30remaining
Choose the best visualization for showing max and min sales per region

You want to show the maximum and minimum sales amounts for each region in a report. Which visualization type is best to clearly show both values side by side for easy comparison?

ALine chart showing max and min sales over time
BClustered column chart with separate columns for max and min sales per region
CPie chart showing max and min sales proportions per region
DStacked column chart with max and min sales as stacked values
Attempts:
2 left
💡 Hint

Think about how to compare two values side by side for each category.

❓ data_modeling
advanced
2:30remaining
Create a calculated column to flag max sales per product

You have a sales table with multiple sales records per product. You want to add a calculated column that flags 1 if the sale amount is the maximum for that product, and 0 otherwise.

Which DAX expression correctly creates this calculated column?

AIsMaxSale = IF(Sales[SalesAmount] = CALCULATE(MAX(Sales[SalesAmount]), ALLEXCEPT(Sales, Sales[ProductID])), 1, 0)
BIsMaxSale = IF(Sales[SalesAmount] = MAX(Sales[SalesAmount]), 1, 0)
CIsMaxSale = IF(Sales[SalesAmount] = CALCULATE(MIN(Sales[SalesAmount]), ALLEXCEPT(Sales, Sales[ProductID])), 1, 0)
DIsMaxSale = IF(Sales[SalesAmount] > CALCULATE(MAX(Sales[SalesAmount]), ALL(Sales)), 1, 0)
Attempts:
2 left
💡 Hint

Remember to keep the filter on the current product when calculating the max.

🔧 Formula Fix
advanced
2:00remaining
Identify the error in this DAX measure for max sales per year

Given this DAX measure:

MaxSalesYear = MAXX(FILTER(Sales, Sales[Year] = MAX(Sales[Year])), Sales[SalesAmount])

What error or issue will this measure cause when used in a report?

Power BI
MaxSalesYear = MAXX(FILTER(Sales, Sales[Year] = MAX(Sales[Year])), Sales[SalesAmount])
AIt causes a circular dependency error because MAX is used inside FILTER on the same column
BIt returns the maximum sales amount for the current year context correctly
CIt returns the maximum sales amount for all years ignoring filters
DIt causes a syntax error due to incorrect use of MAXX
Attempts:
2 left
💡 Hint

Think about how MAX inside FILTER behaves when filtering the same column.

🧠 Conceptual
expert
1:30remaining
Understanding MIN and MAX behavior with BLANK values

In Power BI, when calculating MIN or MAX over a column that contains BLANK() values, what is the behavior?

Choose the correct statement.

AMIN returns BLANK if any BLANK exists, MAX returns the maximum ignoring BLANK
BMIN and MAX treat BLANK as zero and include it in calculations
CMIN and MAX ignore BLANK values and return the minimum or maximum of non-blank values
DMIN and MAX return BLANK if any BLANK exists in the column
Attempts:
2 left
💡 Hint

Think about how aggregation functions treat missing or empty values.

Practice

(1/5)
1.

What does the MIN function do in Power BI?

easy
A. It returns the smallest value in a column.
B. It returns the largest value in a column.
C. It counts the number of rows in a table.
D. It sums all values in a column.

Solution

  1. Step 1: Understand the purpose of MIN

    The MIN function is designed to find the smallest value in a column of data.
  2. Step 2: Compare with other functions

    Unlike MAX which finds the largest, MIN specifically returns the smallest value.
  3. Final Answer:

    It returns the smallest value in a column. -> Option A
  4. Quick Check:

    MIN = smallest value [OK]
Hint: MIN always finds the smallest number in a list [OK]
Common Mistakes:
  • Confusing MIN with MAX
  • Thinking MIN counts rows
  • Assuming MIN sums values
2.

Which of the following is the correct syntax to find the maximum value in a column named Sales[Amount] using DAX?

easy
A. MAX(Sales[Amount])
B. MAXIMUM(Sales[Amount])
C. MAX_VALUE(Sales[Amount])
D. MAX(Sales.Amount)

Solution

  1. Step 1: Recall correct DAX function name

    The correct function to find the largest value is MAX, not MAXIMUM or MAX_VALUE.
  2. Step 2: Check column reference syntax

    In DAX, columns are referenced as TableName[ColumnName], so Sales[Amount] is correct.
  3. Final Answer:

    MAX(Sales[Amount]) -> Option A
  4. Quick Check:

    MAX + [Column] syntax [OK]
Hint: Use MAX(Table[Column]) to get largest value [OK]
Common Mistakes:
  • Using wrong function names like MAXIMUM
  • Using dot notation instead of brackets
  • Adding extra words in function name
3.

Given the table Sales with Amount values: 100, 250, 75, 300, what is the result of MIN(Sales[Amount]) and MAX(Sales[Amount])?

medium
A. MIN = 75, MAX = 250
B. MIN = 100, MAX = 250
C. MIN = 0, MAX = 300
D. MIN = 75, MAX = 300

Solution

  1. Step 1: Identify smallest value in Amount column

    The values are 100, 250, 75, 300. The smallest is 75.
  2. Step 2: Identify largest value in Amount column

    The largest value among these is 300.
  3. Final Answer:

    MIN = 75, MAX = 300 -> Option D
  4. Quick Check:

    MIN = 75, MAX = 300 [OK]
Hint: MIN picks smallest, MAX picks largest number [OK]
Common Mistakes:
  • Mixing up smallest and largest values
  • Assuming zero is minimum without data
  • Ignoring actual data values
4.

What is wrong with this DAX expression to find the minimum sales amount?
MIN(Sales.Amount)

medium
A. MIN cannot be used on numeric columns.
B. The table and column should be referenced with brackets, not dot notation.
C. The function should be MAX, not MIN.
D. The expression is correct as is.

Solution

  1. Step 1: Check column reference syntax

    DAX requires columns to be referenced as TableName[ColumnName], not TableName.ColumnName.
  2. Step 2: Validate function usage

    MIN is valid for numeric columns, so the function is correct but the syntax is wrong.
  3. Final Answer:

    The table and column should be referenced with brackets, not dot notation. -> Option B
  4. Quick Check:

    Use brackets for columns in DAX [OK]
Hint: Use brackets [ ] for columns, not dot . [OK]
Common Mistakes:
  • Using dot notation instead of brackets
  • Confusing MIN with MAX
  • Thinking MIN can't be used on numbers
5.

You have a sales table with columns Region and SalesAmount. You want to create a measure that shows the maximum sales amount only for the East region. Which DAX expression is correct?

A) MAX(Sales[SalesAmount])
B) CALCULATE(MAX(Sales[SalesAmount]), FILTER(Sales[Region] = "East"))
C) MAXX(FILTER(Sales, Sales[Region] = "East"), Sales[SalesAmount])
D) MIN(Sales[SalesAmount])
hard
A. MAX(Sales[SalesAmount])
B. CALCULATE(MAX(Sales[SalesAmount]), FILTER(Sales[Region] = "East"))
C. MAXX(FILTER(Sales, Sales[Region] = "East"), Sales[SalesAmount])
D. MIN(Sales[SalesAmount])

Solution

  1. Step 1: Understand filtering by region

    We want the max sales amount only for the East region, so we must filter the table to East.
  2. Step 2: Evaluate options

    MAX(Sales[SalesAmount]) returns max for all regions.
    CALCULATE(MAX(Sales[SalesAmount]), FILTER(Sales[Region] = "East")) uses FILTER incorrectly; FILTER requires a table as the first argument followed by a condition.
    MAXX(FILTER(Sales, Sales[Region] = "East"), Sales[SalesAmount]) correctly filters Sales to East and then finds max SalesAmount.
    MIN returns minimum, not maximum.
  3. Final Answer:

    MAXX(FILTER(Sales, Sales[Region] = "East"), Sales[SalesAmount]) -> Option C
  4. Quick Check:

    Use MAXX + FILTER for conditional max [OK]
Hint: Use MAXX with FILTER for max with conditions [OK]
Common Mistakes:
  • Using MAX without filtering
  • Incorrect CALCULATE filter syntax
  • Using MIN instead of MAX
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