Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set expression throwing error

Dear Friends,

Please help me out in this small issue -

I tried below expression in the expressions of straight table chart, but it gives error as Allocated memory exceeded.

Sum({<[TradeGroup] = {'Subscription'}>}[#NetAmount])

Thanks,

Deepti

1 Solution

Accepted Solutions
Not applicable
Author

Thanku very very much everyone for replying. I appreciate each and everyone's help.

I solved this error by using below expression -

Sum(if(TradeGroup='Subscription',#NetAmount,0))


Although, I am still unclear why the set analysis expression failed and if clause worked. Is there any difference in processing the resultset in both these cases?


Thanks,

Deepti

View solution in original post

7 Replies
SergeyMak
Partner Ambassador
Partner Ambassador

Hi

What are your dimensions?

Regards,
Sergey
jagan
Luminary Alumni
Luminary Alumni

Hi,

What is the size of your Dashboard?

What other dimensions and expressions in the chart?

Can you attach the  sample file?

Try to recreate the chart and check.

Regards,

jagan.

vardhancse
Specialist III
Specialist III

Try lo delete all the temp from your desktop/laptop by using some CC cleaner and try now top open the dashboard.

Not applicable
Author

That error can happen too when there's an error in an expression. Check your expressions for syntax errors. Or you simply added too many dimensions to a chart. If you add more than seven dimensions you should consider reducing that number, or using conditions to show/hide dimensions as needed, or creating a couple of simpler charts instead of just one big complicated one.

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I suspect that there is no proper association between the tables containing TradeGroup and #NetAmount - which is forcing Qv to do perform a cross join between them.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanku very very much everyone for replying. I appreciate each and everyone's help.

I solved this error by using below expression -

Sum(if(TradeGroup='Subscription',#NetAmount,0))


Although, I am still unclear why the set analysis expression failed and if clause worked. Is there any difference in processing the resultset in both these cases?


Thanks,

Deepti

jagan
Luminary Alumni
Luminary Alumni

Hi,

This is the best expression than using if, not sure why you are getting error

=Sum({<TradeGroup={'Subscription'}>}[#NetAmount])


Now you try giving this expression, hope this works now.


Regards,

Jagan.