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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
IAMDV
Master II
Master II

Caching the data in Qlikview/ Many expressions in QV document

Dear All,

What is the best approach to work with large & complex expressions? I am building a QV document with more than 50 different KPIs, So I wanted to build a robust model in place. I am looking for a simple approach to maintain the expressions...

Experts - Pleaes can you share best practices?

TIA!

Cheers - DV

6 Replies
Not applicable

Keep common parts of these expressions in variables.

Pre-calculate non-dynamic values in your loading script.

Avoid loading fields that you don't need.

IAMDV
Master II
Master II
Author

Iassen - Thank you for quick response. I had already assigned variables for the common parts of the expressions for re-usability purposes. However, I am not sure about Pre-calculating the non-dynamic values. Inface I have almost 10 expressions which return deterministic/ Non-dynamic values. Please can you provide an example or sample script on how to integrate these functions in the load script?

Many thanks for your help!

Cheers - DV

IAMDV
Master II
Master II
Author

Can I request for expert suggestions from

Miguel Angel Baeyens/ John Witherspoon / Oleg Troyansky / Jonathan Dienst / CheenuJanakiRam.

Thanks in anticipation.

Cheers - DV

Not applicable

It's hard to show a generic example, but say you have a few transactions, but you will never want to see them separately, and always summed up instead. Then you do a SUM in your loading script using the adequate GROUP BY and this way you end up with pre-aggregated values that you just use in your expressions and you don't need to do the SUM there, which uses both space and resources.

IAMDV
Master II
Master II
Author

Simple yet clever approach! Thank you for sharing the information... I would love to get more ideas from other members.

Cheers - DV

Not applicable

You're welcome. Good luck.