Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
Many thanks for the support.
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous
First Add an Index Column using Query Editor as follows
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
)
@Anonymous
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!