Forum Discussion
vickyprudhvi
Helper IV
10 years agoDax Calculated Column for Repeat Count
Hi, ID Amt CalculatedColumn 1 1000 3 1 2000 3 1 3000 3 2 ...
austinsense
Impactful Individual
10 years agoVar CURRENTID = Table[ID]
Return calculate (countrows(Table), Table[ID] = CURRENTID)
Return calculate (countrows(Table), Table[ID] = CURRENTID)
- vickyprudhvi10 years ago
Helper IV
Is that a calculated column or where is that dax returned
- austinsense10 years ago
Impactful Individual
Yep, calculated column- vickyprudhvi10 years ago
Helper IV
do u mean this
CALCULATE(COUNTROWS(Table),Table[Id]=EARLIER(Table'[Id]))
I am not sure how to write VAR or return function in Tabular Model DAX