Forum Discussion
jussiwaisto
6 years agoHelper I
Hitrate from two dates problem
Hi, I have a table (offers to customers) where are two date datas and if i want to count a hitrate from one month (deals made in that month / offers made in that month) I should made a count from...
amitchandak
6 years agoSuper User
Try something like this
IDs = (
VAR _Cuur_start = MIN('Date'[Date])
VAR _Curr_END = Max('Date'[ Date])
return
calculate(countdistinct(Sales[ID]), not(isblank(Confirmation)) && Sales[Confirmation Date] >= _Cuur_start && Sales[Confirmation Date] <= _Curr_END
,CrossFilter(Sales[offer Date],'Date'[Date] ) //in case you do not want to follow offer data
))jussiwaisto
6 years agoHelper I
Thanks, lets try!
Something went wrong in the syntax. (?) Did i wrote it right?