Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
cbaqir
Specialist II
Specialist II

Pivot Table Expression Cascades when grouped

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.

12-9-2015 8-26-05 AM.jpg

Single and Correct:

12-9-2015 8-27-42 AM.jpg

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

12 Replies
Not applicable

we are going to test somthing.

put in your variable   this expression : IF( FABS($(vNewVariance))>1 , 0 ,1- FABS($(vNewVariance)) )

and show me the result

cbaqir
Specialist II
Specialist II
Author

12-10-2015 12-35-19 PM.jpgStill null.

cbaqir
Specialist II
Specialist II
Author

Ok, after removing the = from the Variables, the vNewVariance is working but vNewForecast is still showing all NULLs.

When I copied the expression into a text box, I see Error: Error in expression: ')' expected.

=IF(($(vForecastRound)=0 and $(vActualRound)=0), IsNull(Null()), IF(FABS($(vNewVariance))>1,0, 1-FABS($(vNewVariance))))

I think the issue is related to FABS($(vNewVariance)) because this alone gives me the same error. Does FABS() not work in this case for some reason?

Is there a way to pinpoint the issue because I can't seem to find it.