Security groups use in rules?
Posted: Thu Oct 04, 2012 9:44 am
To meet end user requirements I am trying to construct a number of rules and processes that eliminate a number of date related maintenance functions as to whether or not time periods in a cube are writable. For the most part the following rules for the data entry cube the end user sees accomplishes this task:
What this rule does of course is look to the forecast flag in an "access cube" that is automatically set by a chore that runs on the first of every month. If it sees "closed" it pulls data from a cube, otherwise the cells defined by this rule are writable. Works perfectly.
However, the end user has added one more requirement, and that is to also at a specific date in the month (the 10th let's say), make the intersection of cells as shown above "writable" for only one security group, and "read" for all others.
Assuming I had the following security groups:
GROUP A
GROUP B
WRITABLE GROUP
While the following ignores the date portion of the requirements which I can figure out, Is it possible to look at the group of the current logged in user so that before applying the rest of the rule, or something like this:
While I'm sure that this wouldn't work, it's what I need to do. If someone can point me in the right direction, it would be great!
Mike
Code: Select all
['Oct', '2013 Forecast'] = N: IF(DB('Product Forecast Flags', 'Oct', '2013 Forecast', 'Forecast Flag') @= 'Closed',
DB('Product Forecast Data', !dimCostCentersProductForecasting, !dimProductCategory, !dimProductLine, !dimProducts, 'Oct', '2013 Forecast', !Quantity),STET);
However, the end user has added one more requirement, and that is to also at a specific date in the month (the 10th let's say), make the intersection of cells as shown above "writable" for only one security group, and "read" for all others.
Assuming I had the following security groups:
GROUP A
GROUP B
WRITABLE GROUP
While the following ignores the date portion of the requirements which I can figure out, Is it possible to look at the group of the current logged in user so that before applying the rest of the rule, or something like this:
Code: Select all
['Oct', '2013 Forecast'] = N: IF ("WRITABLE GROUP", STET, IF(DB('Product Forecast Flags', 'Oct', '2013 Forecast', 'Forecast Flag') @= 'Closed',
DB('Product Forecast Data', !dimCostCentersProductForecasting, !dimProductCategory, !dimProductLine, !dimProducts, 'Oct', '2013 Forecast', !Quantity),STET));]
Mike