Hello,
I have a formula to count duplicate rows in Excel. It marks the first instance of a duplicate with a 1 and each duplicate thereafter with a 0.
=IF(COUNTIF($B$2:$B2, B2)>1,0,1)
What I'm trying to write is an equivalent DAX formula that will do the same thing, but I'm not sure how to go about it. I'm almost certain that I need to combine the CALCULATE and COUNTROWS functions to get what I need, but I can't seem to nail down the correct syntax. Any help would be appreciated.
Thanks!
I have a formula to count duplicate rows in Excel. It marks the first instance of a duplicate with a 1 and each duplicate thereafter with a 0.
=IF(COUNTIF($B$2:$B2, B2)>1,0,1)
What I'm trying to write is an equivalent DAX formula that will do the same thing, but I'm not sure how to go about it. I'm almost certain that I need to combine the CALCULATE and COUNTROWS functions to get what I need, but I can't seem to nail down the correct syntax. Any help would be appreciated.
Thanks!