Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to figure out what is wrong with my syntax that causes the Variance and Forecast Accuracy to cascade to all rows when grouped by Program/Portfolio but if a single Project is selected, it looks correct.
Single and Correct:
Dimensions:
PROG_PORT
REQUEST_ID
Variables and Their Expressions:
vNewForecastAccuracy =IF(($(vForecastRound)=0 and $(vActualRound)=0),IsNull(Null()),IF(FABS($(vNewVariance))>1,0,1-FABS(($(vNewVariance)))))
vNewVariance =IF($(vVariance)=0,0,IF($(vForecastRound)=0,IF($(vVariance)<0,-1,1), ($(vVariance)/ ($(vForecastRound)))))
Thanks,
Cassandra
hi,
you must remove the sign = in your variables
Variables and Their Expressions:
vNewForecastAccuracy
IF(($(vForecastRound)=0 and$(vActualRound)=0),IsNull(Null()),IF(FABS($(vNewVariance))>1,0,1-FABS(($(vNewVariance)))))
vNewVariance
IF($(vVariance)=0,0,IF($(vForecastRound)=0,IF($(vVariance)<0,-1,1), ($(vVariance)/ ($(vForecastRound)))))
Here's a guess:
Your variables contain calculations. Those calculations are not done in the chart and therefore are not aggregated by the chart dimensions.
Why aren't the calculations done in the chart? It works fine when I select one project.
I presume that you have calculations in your variables. Those calculations are not limited by the chart dimensions.
When you select a project, you are limiting the calculation in your variables.
So is the answer to not use a variable with calculations in a chart or to add the chart dimensions into the statement? If the latter, how would I do that?
Why would that make a difference?
It seemed to fix vNewVariance but not vNewForecastAccuracy.
Can you show me the result for vNewForecastAccuracy