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 ...
vickyprudhvi
10 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
austinsense
10 years agoImpactful Individual
Either way, those two formulas produce the exact same result.
- vickyprudhvi10 years agoHelper IV
Its not working with my formular it repeating total count of table instead of repeating total count for each ID
- vickyprudhvi10 years agoHelper IV
austinsense btw I am using Tabular model 2012 and not 2016 so VAR anc Return function is not available
- austinsense10 years agoImpactful Individual
Yep, sorry we should have covered that :smileyhappy: sounds like you got the problem solved?