I'm trying to display in a Picklist (Attribute) cell the appropriate number of days based on the month/Year combination.
To do this, I've a Days dimension and have created subsets - '31 Days' and '30 Days'. The cube contains - Year, Month, and Measures dimension (and Days which is a picklist is an element of Measure Dimension). Month dimension has few Text Attributes such as 'Season' and 'Month Code' text attributes.
In the }ElementAttributes_Measures control cube, I've written the rule to display either Subset '31 Days' or '30 Days' as per the text attribute.
Code: Select all
['Picklist', 'Days' ] = S: If(ATTRS('Month', 'Jan', 'Season')@='Winter','subset:Days:31 Days', 'subset:Days:30 Days');
Appreciate your time and help.
Thanks