RPAS - To assign difference of 2 date measures as a number to another measure
I have 2 measures - one at sku/location level which is a 'sale date' and is of type 'date', Another measure is 'nbrofdays' which is also at sku/location level and is of type 'real'.
I need to find the number of days from today to the sale date i.e. e.g. if sale date is 01-apr-2012 and today-15-may-2012, then nbrofdays = 44 days, and assign it to 'nbrofdays' measure
My workbook does not have a dimension of 'day' in the base intersection, but can add 'day' to the base intersection if that can solve this issue..
Tried the below rule, but is giving me erronoeus value.