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
matthewtjy
5 years agoHelper I
Hi Paul,
Pertaining to this measure, is it possible to have a SUM of 2 measures (Measure1 & Measure 2) and both measures are from 2 different tables and i am unable to combine both tables into 1
e.g. Measure1 = CALCULATE(DISTINCTCOUNT([Data Column]),FILTER(ALL(Table1),[Year Column]<=MAX([Year Column])&& [COLOR]<>"BLUE"&& [MATERIAL]<>"Plastic"))
Measure2 = CALCULATE(DISTINCTCOUNT([Data Column]),FILTER(ALL(Table2),[Year Column]<=MAX([Year Column])&& [COLOR]<>"BLUE"&& [MATERIAL]<>"Plastic"))