Performance Modeler : Picklists in Conditional Calcs
Posted: Thu Jul 12, 2012 5:34 pm
Hi Folks
Got a question on Performance Modeler (PM) using Picklists and Conditional Calcs. I know I can do this in the Rules editor but really need to explore the limits of PM here
My Measures
Actuals Flag : (picklist showing Actuals in the Actual Months)
Actuals Sales : (Sales data)
Forecast Sales : (Sales data)
Budget Sales : (Sales data):
Revised Forecast : (Calc line)
My Calculation line ‘Revised Forecast’ needs to be [ IF value in ‘Actuals Flag’ = Actuals, THEN take data from ‘Actuals Sales’]
You see, the trouble with PM is that it puts single quotes around variable names which is what I would normally do to reference a text item such as ‘zebras’, ‘potatoes’, or in this case ‘Actuals’.
To make this work I abandoned the idea of referencing the text in the picklist but created more variables(lines) with those options so can use the lines as comparators.
Eg: Created ‘ActualsForced’ line to harcode text ‘Actuals’ in all months then use my real flag ‘Actuals Flag’ as comparator so can compare the values in each line:
=IF 'Actuals Flag' = 'ActualsForced' THEN 'Actuals Sales'
I can aslo assocate each item in a picklist with a number, so Actuals is 1 and Forecast 2. Then in my formula I can say if Flag=1 THEN xyz. This requires building a lookup cube to pull the associated numbers for the picklists of course. Have you guys managed to achieve this ?
Thanks
Mark
Got a question on Performance Modeler (PM) using Picklists and Conditional Calcs. I know I can do this in the Rules editor but really need to explore the limits of PM here
My Measures
Actuals Flag : (picklist showing Actuals in the Actual Months)
Actuals Sales : (Sales data)
Forecast Sales : (Sales data)
Budget Sales : (Sales data):
Revised Forecast : (Calc line)
My Calculation line ‘Revised Forecast’ needs to be [ IF value in ‘Actuals Flag’ = Actuals, THEN take data from ‘Actuals Sales’]
You see, the trouble with PM is that it puts single quotes around variable names which is what I would normally do to reference a text item such as ‘zebras’, ‘potatoes’, or in this case ‘Actuals’.
To make this work I abandoned the idea of referencing the text in the picklist but created more variables(lines) with those options so can use the lines as comparators.
Eg: Created ‘ActualsForced’ line to harcode text ‘Actuals’ in all months then use my real flag ‘Actuals Flag’ as comparator so can compare the values in each line:
=IF 'Actuals Flag' = 'ActualsForced' THEN 'Actuals Sales'
I can aslo assocate each item in a picklist with a number, so Actuals is 1 and Forecast 2. Then in my formula I can say if Flag=1 THEN xyz. This requires building a lookup cube to pull the associated numbers for the picklists of course. Have you guys managed to achieve this ?
Thanks
Mark