I am trying to run some analysis, and typed a formula to attempt to do so, but the DAX is giving me the redline error, with no error message.
I have no idea why this formula wont run, so any suggestions would be appreciated. Here is a screenshot:
Tried recreating the formula, modifying, etc, but nothing would push it through. Any help would be super appreciated.
Also a copy of the formula:
Customer Retention % =
VAR CurrentMonthAfter = SELECTEDVALUE('Months After'[Value])
VAR CurrentFirstOrderMonth = SELECTEDVALUE('JOD REPORTS'[First Order Date (EOM)])
Return
DIVIDE(
CALCULATE(
DISTINCTCOUNT('JOD REPORTS'[Customer Number]),
FILTER(
'JOD REPORTS',
EOMONTH('JOD REPORTS'[Order Date],0) = EOMONTH(CurrentFirstOrderMonth,CurrentMonthAfter)
)
),
DISTINCTCOUNT('JOD REPORTS'[Customer Number])
)
