Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Gowtham
Contributor III
Contributor III

Qlik Sense Stacked Bar chart Calculation Timed out

Hi All,

I have created one stacked bar chart in qlik sense. It is working fine when the Date is selected but when there is no selection,the chart became calcluation timed out after sometime

Dimensions - Id and Source

Expression -  if(GetSelectedCount(Period)=0,
Count({<DispenseDateKey_Monthname={'$(=$(vCurrMonth))'}>}Source),
Count({<DispenseDateKey = {">=$(=(min(Period)))<=$(=(max(Period)))"}>}Source)
)

Can anyone help me optimize the expression to fix this calculation timed out issue?

1 Solution

Accepted Solutions
Anil_Babu_Samineni

I feel always, set analysis is good option, But this way

Count(If(DispenseDateKey_Monthname='$(vCurrMonth)', Source))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
Anil_Babu_Samineni

How many aggregated rows are available for each object using this?

Count({<DispenseDateKey_Monthname={'$(=$(vCurrMonth))'}>}Source)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Gowtham
Contributor III
Contributor III
Author

There are 237.4k aggregated rows for this expression

Thank you

Anil_Babu_Samineni

I feel always, set analysis is good option, But this way

Count(If(DispenseDateKey_Monthname='$(vCurrMonth)', Source))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Kushal_Chawda

what is the expression in vCurrMonth? How values in DispenseDateKey_Monthname looks like?