0
0
Power BIbi_tool~20 mins

Removing duplicates in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Duplicate Remover Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
DAX Measure to Count Unique Customers
You have a sales table with multiple rows per customer. Which DAX measure correctly counts the number of unique customers, removing duplicates?
AUnique Customers = COUNT(Sales[CustomerID])
BUnique Customers = COUNTROWS(Sales)
CUnique Customers = SUM(Sales[CustomerID])
DUnique Customers = DISTINCTCOUNT(Sales[CustomerID])
Attempts:
2 left
💡 Hint

Think about which function counts distinct values only.

visualization
intermediate
2:00remaining
Visualizing Unique Product Sales
You want to create a bar chart showing the number of unique products sold per region. Which approach correctly removes duplicates in the visualization?
AUse COUNT(Product[ProductID]) and place Region on axis
BUse COUNTROWS(Sales) and place Region on axis
CUse a measure with DISTINCTCOUNT(Product[ProductID]) and place Region on axis
DUse SUM(Sales[Quantity]) and place Region on axis
Attempts:
2 left
💡 Hint

Counting unique products means counting distinct product IDs.

data_modeling
advanced
2:00remaining
Removing Duplicates in Data Model
You have a table with duplicate customer records. Which Power BI data modeling step removes duplicates before loading data?
AUse Power Query's Remove Duplicates on CustomerID column
BCreate a calculated column with DISTINCTCOUNT(CustomerID)
CApply a filter visual to hide duplicates
DUse a DAX measure with COUNTROWS to filter duplicates
Attempts:
2 left
💡 Hint

Removing duplicates before loading data is done in Power Query.

🔧 Formula Fix
advanced
2:00remaining
Debugging Duplicate Removal in DAX
You wrote this DAX measure to count unique orders but it returns incorrect results with duplicates still counted:

Unique Orders = COUNT(Order[OrderID])

What is the main issue?
Power BI
Unique Orders = COUNT(Order[OrderID])
AOrderID column has blanks causing errors
BCOUNT counts all rows including duplicates; use DISTINCTCOUNT instead
CMeasure syntax is invalid and causes error
DCOUNT only works on numeric columns, OrderID is text
Attempts:
2 left
💡 Hint

Think about which function counts unique values.

🎯 Scenario
expert
3:00remaining
Scenario: Removing Duplicates with Multiple Conditions
You have a sales table with duplicate rows for the same CustomerID and ProductID on the same date. You want to count unique sales transactions ignoring duplicates where CustomerID, ProductID, and Date are the same. Which DAX expression achieves this?
AUnique Sales = COUNTROWS(SUMMARIZE(Sales, Sales[CustomerID], Sales[ProductID], Sales[Date]))
BUnique Sales = DISTINCTCOUNT(Sales[TransactionID])
CUnique Sales = COUNTROWS(Sales)
DUnique Sales = CALCULATE(COUNT(Sales[CustomerID]), ALLEXCEPT(Sales, Sales[CustomerID], Sales[ProductID], Sales[Date]))
Attempts:
2 left
💡 Hint

Summarize groups rows by unique combinations of columns.