Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Duplicate check in a calculated column

Hello,

 

I am trying to create a calculated column in which I need the count of the times each record exists in my data (i.e. tha number of times I found the same unit). The outcome should look like the example I provide below.

 

 

Screenshot_2.png

 

 

Many thanks for the support.

 

 

3 REPLIES 3
MFelix
Super User
Super User

Hi @Anonymous,

 

Create the following Measure not a calculated column:

 

Duplicate Check = Count(Table[Unit Name])

Then add it to a visual table with the unit name.

 

Regards

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @Anonymous

 

First Add an Index Column using Query Editor as follows

 

1071.png

 

Now you can get the desired calculated column using this formula

 

Duplicate Check =
RANKX (
    FILTER ( TableName, TableName[Unit Name] = EARLIER ( TableName[Unit Name] ) ),
    TableName[Index],
    ,
    Asc,
    DENSE
)

 

 


Regards
Zubair

Please try my custom visuals

@Anonymous

 

1072.png


Regards
Zubair

Please try my custom visuals

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.