Forum Discussion
fabdata1207
3 years agoRegular Visitor
Simple Running Count
Hi all I need to do a simple running total with sort by date in the below sample I need to create a measure as the same of Running Total and that counts the CODE and sort based on Date exactl...
- 3 years ago
you can try this
Measure = VAR _total=CALCULATE(DISTINCTCOUNT('Table'[CODE]),FILTER(all('Table'),'Table'[Date]<=max('Table'[Date]))) return if (ISFILTERED('Table'[CODE]),_total, DISTINCTCOUNT('Table'[CODE]))
ryan_mayu
3 years agoSuper User
you can try this
Measure =
VAR _total=CALCULATE(DISTINCTCOUNT('Table'[CODE]),FILTER(all('Table'),'Table'[Date]<=max('Table'[Date])))
return if (ISFILTERED('Table'[CODE]),_total, DISTINCTCOUNT('Table'[CODE]))