Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot table expression format diffrence

Hi everyone,

I have a pivot table sum that it does not show if i format my expresion in a specific way.

The sums show correctly at the 1st expression:

if( b.Year < SubField(vTODAY,'-',1),sum(b.QtyInvoiced),if(b.Month < SubField(vTODAY,'-',2),sum(b.QtyInvoiced),sum(b.ForecastQty)))

But do not show at the 2nd expression:

sum(if( b.Year < SubField(vTODAY,'-',1),b.QtyInvoiced,if(b.Month < SubField(vTODAY,'-',2),b.QtyInvoiced,b.ForecastQty)))

Can anyone enlighten me what is the diffrence between those two???as well as when to use one or another???

Regards

1 Reply
tresesco
MVP
MVP

Have a look at this discussion