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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
alex59800
Contributor II
Contributor II

Reduce an Object truth macro

Hello,

I got a problem with a specific object showing a detail order, invoice, product with expression of turnover, discout, quantity...

It's a quite huge table if you don't select an invoice nulber before you open the specific sheet. The result is, qlikview is going down for a moment before all orders, invoices, products appears. I can save my document with this pivot table reduced so as there is no problem of timeout.

My point is how to make a macro who reduce an specific object when you open the sheet concern.

Thx a lot


Alex

2 Replies
Miguel_Angel_Baeyens

You can use the "Conditional Calculation" in the properties of your chart so if there is no selection, it will show an error message (which you can customize). You have all data but it won't be showed until some selection is done.

For that, I use

Not IsNull(GetCurrentSelections())


rather than a macro.

johnw
Champion III
Champion III

IsNull() doesn't behave itself in 64-bit unless that's been changed in version 9, so I'd rewrite the calculation condition as len(getcurrentselections()). However, it would be easy to make a selection that still leaves you with a gigantic data set. Perhaps here you would instead want something like count(distinct Invoice)<100, or something along those lines as your calculation condition.