Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Find Duplicate

Values in the
Dimension
Table
01
Problems with Duplicates in
Dimension Table

Shows an
error while
connecting
Dimension Table Fact Table

Duplicate Values in the


Dimension Table

When trying to connect a fact table with a dimension


table using a one-to-many relationship, you may get an
error if there are duplicate values in the column in which
the relationship is being built in the dimension table.
youtube.com/@GoodlyChandeep
02
Method 1 -

Finding Duplicate Values


using a Calculated Column

We'll create a column in the dimension table and


use the following DAX to find out which rows are
duplicated.

1 Check =
2 COUNTROWS(
3 FILTER(
4 Products,
5 Products[Product ID]=EARLIER(Products[Product ID])
6 )
7)

youtube.com/@GoodlyChandeep
03

Filter Out the Duplicates

The above DAX will work like Excel's COUNTIF


function, and if the value appears more than once,
it's identified as a duplicate.

Duplicate
Rows

youtube.com/@GoodlyChandeep
04
Method 2 -

Finding Duplicate Values


using Visuals

Drag Product ID
column twice

Step 1 - Create a table visual and drag the Product ID


column twice.

youtube.com/@GoodlyChandeep
05

Change the
summarization
option to Count.

Step 2 - Change the second Order ID column to


Count. This shows how often each row appears.

youtube.com/@GoodlyChandeep
06

Filter Out the Duplicates

Step 3 - If you're working with tables that have many


rows, apply a filter to show counts greater than one.
This effectively isolates duplicate Product IDs.

Apply the
filter - is
greater
than 1.

Duplicate Values

youtube.com/@GoodlyChandeep
I’ve covered a lot more in this
video. You’ve got to watch it.

07:23

Find Duplicate Values in Dimension Tables


Goodly

youtube.com/@GoodlyChandeep
600+ People joined the DAX and
Data Modeling Course
Jumpstart your learning

DAX & Data Modeling Course

A step by step guide to learn DAX and Data


Modeling to solve real time business problems in
Power BI.

Learn More

You might also like