Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
Devi_SK
Contributor
Contributor

Calculation timed out error in QlikView Pivot table.

Hi, 

When I use below expression in Pivot table Dimension (calculated dimension) I'm getting Calculation Timed out error.

aggr(if(not IsNull(AgreementNumber), (AgreementNumber)),IndividualItemNumber)

Could you please help?

Thank you 🙂

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

Maybe

Aggr(Only({$<AgreementNumber = {"*"}>} AgreementNumber), IndividualItemNumber)

or

Aggr(Only({$<Field = {"=Len(Trim(Field))>0"}>} AgreementNumber), IndividualItemNumber)

View solution in original post

6 Replies
BrunPierre
Partner - Master
Partner - Master

Maybe

Aggr(Only({$<AgreementNumber = {"*"}>} AgreementNumber), IndividualItemNumber)

or

Aggr(Only({$<Field = {"=Len(Trim(Field))>0"}>} AgreementNumber), IndividualItemNumber)

Devi_SK
Contributor
Contributor
Author

It worked. Thank you so much @BrunPierre 

Devi_SK
Contributor
Contributor
Author

Hello @BrunPierre ,

Could you please help me to convert the below expression in to set expression? I need to optimize this so

AGGR(NODISTINCT(COUNT(DISTINCT(IF(L1>=2019401  AND (L2=1 AND (L3=1 OR L4>0)) AND (L5<>'M' AND L5<>'N'ANDL5 <>'O') ,IND_NUM)))), AGREEMENT_NUMBER)

Thank you:)

BrunPierre
Partner - Master
Partner - Master

=Count(DISTINCT {$<L1 = {">=2019401"}, L2 = {1}, L3 = {1} > + <L4 = {">0"}, L5-= {'M', 'N', 'O'}>} IND_NUM)

Devi_SK
Contributor
Contributor
Author

Thanks,

But I'm not sure how to handle this Part   (L2=1 AND (L3=1 OR L4>0)  )

BrunPierre
Partner - Master
Partner - Master

'+' and '*' are used in place of the OR and AND operators respectively while combining two sets.

Have you tried the above?

or perhaps

=Count(DISTINCT {$<L1 = {">=2019401"}> * <L2 = {1}> * <L3 = {1} > + <L4 = {">0"}> * <L5-= {'M', 'N', 'O'}>} IND_NUM)