Forum Discussion
matthewtjy
5 years agoHelper I
Cumulative Distinct Count by Year
Hi, I've used the measure "Measure = CALCULATE(DISTINCTCOUNT(DATA TO COUNT),FILTER(ALLSELECTED(DATA_TABLE),(DATA DATE)<=MAX(DATA_DATE)))" to plot a cumulative graph. For example's sake, I've simp...
- Anonymous5 years ago
Sorry, had wrong braces. Try:
Measure = CALCULATE(DISTINCTCOUNT([Data Column]),FILTER(ALL(Table),[Year Column]<=MAX([Year Column])&& [COLOR]<>"BLUE"))
Paul
Anonymous
5 years agoNot applicable
Try add the color filter inside the running total expression.
Measure = CALCULATE(DISTINCTCOUNT(DATA TO COUNT),FILTER(ALL(DATA_TABLE),[DATA DATE]<=MAX(DATA_DATE) && [COLOR]<>"BLUE"))
Paul Zheng _ Community Support Team
matthewtjy
5 years agoHelper I
This formula gives the error "The MAX function only accepts a column reference as an argument"
Is there another workaround to this?
Thanks in advance!