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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 46 |