Forum Discussion
felipevaz
Helper I
6 years agoCALCULATE IF DATE GREATER THAN
Hi folks, Please, I am trying to get a CALCULATE using 2 variable, depending if the date is greater than... I tried but not working IF( [DATE] > DATE(2019;10;1) ; CALCULATE(DISTINCTCOUNT(ID...
parry2k
Super User
6 years agofelipevaz seems like you are adding this as a measure, you need to change the expression as below, if it doesn't work, please explain if there is an error or you are getting wrong result, simply saying it is not working, very hard to know what does that means.
IF( MAX( Table[DATE] ) > DATE(2019;10;1) ; CALCULATE(DISTINCTCOUNT(ID;FILTER(MYTABLE;MYTABLE[%]>0,8); CALCULATE(DISTINCTCOUNT(ID;FILTER(MYTABLE;MYTABLE[%]>0,5))