Forum Discussion
vickyprudhvi
10 years agoHelper IV
Dax Calculated Column for Repeat Count
Hi, ID Amt CalculatedColumn 1 1000 3 1 2000 3 1 3000 3 2 ...
austinsense
10 years agoImpactful Individual
Var CURRENTID = Table[ID]
Return calculate (countrows(Table), Table[ID] = CURRENTID)
Return calculate (countrows(Table), Table[ID] = CURRENTID)
vickyprudhvi
10 years agoHelper IV
Is that a calculated column or where is that dax returned
- austinsense10 years agoImpactful IndividualYep, calculated column
- vickyprudhvi10 years agoHelper 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
- austinsense10 years agoImpactful IndividualEither way, those two formulas produce the exact same result.