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.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |