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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pre-calculation

Hello all,

I'd like to pre-calculate KPI's for each month in order to generate my charts more quickly. I'm just not sure how to do this fast.

I was thinking of creating an inline table and doing the calculation in the load. Something that looks like this:

LOAD

    KPI,

    $(=fn) as KPI_VALUE

INLINE [

KPI

1

2

3

4

5

];

Where fn would be the appropriate function.

But how do I refer to the other fields in my data model? If I would replace the fn by count(OTHER_FIELD) then I get an error...

1 Reply
pablolabbe
Partner Ambassador
Partner Ambassador

Blue,

  In a load script, it's not possible to refer to columns in other tables, like in chart expressions. You have to join the tables first, and after that, you can create calculations with these fields in the joined table.

  Probably you will have to create several blocks, each one calculating a KPI and after that concatenate all the resulting calculations in one single table.

Regards,

Pablo Labbe

Qlikview Consultant

Vision Gestão & Tecnologia

www.visiongi.com.br

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button! | Follow me on Linkedin