Rule for RPD
Posted: Thu May 20, 2021 8:51 pm
Hi ,
I have a cube with time dimension that goes from year to calendar day level.I alos have another dimension called business days .If there are some calendar days thats not a business day , we will load it to the prior business day or future business day .
Now users wanted a measure caled Sales RPD which is salesrevenueperday .
Now that it makes sense to show the rpd only at month level , I will haev to write a rule say that , if may 2021 is chosen on month and all business ays are chosen , then ake the sales for that month and divide by number of business days for the month, if its looked at year then I have to look at the sales for the year divied by number of business days for that year .
I am planningto store the numbe rof business days completed as an attribute on time dimension .
Can any one give me an example of how the rule and feeder should be ,
should it be only at C level and have an additional check to see if its year or month level and then perform the calulation .
[RPD]=c: if (!month level is 2 or 3 ) then sales /(Attribute of timeperiod to get business days )
Thanks,
I have a cube with time dimension that goes from year to calendar day level.I alos have another dimension called business days .If there are some calendar days thats not a business day , we will load it to the prior business day or future business day .
Now users wanted a measure caled Sales RPD which is salesrevenueperday .
Now that it makes sense to show the rpd only at month level , I will haev to write a rule say that , if may 2021 is chosen on month and all business ays are chosen , then ake the sales for that month and divide by number of business days for the month, if its looked at year then I have to look at the sales for the year divied by number of business days for that year .
I am planningto store the numbe rof business days completed as an attribute on time dimension .
Can any one give me an example of how the rule and feeder should be ,
should it be only at C level and have an additional check to see if its year or month level and then perform the calulation .
[RPD]=c: if (!month level is 2 or 3 ) then sales /(Attribute of timeperiod to get business days )
Thanks,