Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Pablo,
This is a problem somebody posted a couple months ago and the conclusion was to use a date island table or set analysis because there is not a known way to do a rangesum(distinct ...) or a rangecount(distinct ... ). The set analysis would be the preferred way, but you have to make an expression for every month instead of the month being the dimension. The expression would be something like this:
count({$<Year=,Month=,MonthYear={">=$(=addmonths(max(MonthYear),-3))<=$(=max(MonthYear))"}>} distinct codClientes)
/
count({$<Year=,Month=,MonthYear={">=$(=addmonths(max(MonthYear),-12))<=$(=max(MonthYear))"}>} distinct codClientes)
Instead of a dynamic MonthYear, you could do one for each month, too.
The date island table will allow you still use a Month_Island as a dimension, but the count(distinct if(Month>=addmonths(Month_Island,-3), codClientes)) can be very slow and should be avoided if possible.
Regards.
Regards.
Karl, do you have any example for this?
regards
Pablo, Here's an example with the set analysis for the first 4 months of the year you select.
Regards.
thanks Karl, im going try whit this example.