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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Load when inline

Hello,
Is het possible to use a when-claus inside a load?
For example i have a chart whit the following data:
EstablishmentAmount
Alkmaar2000
Alkmaar2500
Amsterdam5000
Amsterdam 3500
Alkmaar1500

In the script i would like to load the average amount bij Establishment; Alkmaar 6000 and Amsterdam 8500.

The result of the script is a table as shown below:

Alkmaar.AverangeAmsterdam.Average
60008500

I have tried and played with a load like:

LOAD



SUM ({< Establishment={'6'} >} (Amount/12)) AS [Alkmaar.Average],

SUM ({< Establishment={'7'} >} (Amount/12)) AS
[Amsterdam.Average]

FROM

D:\Qlikview\10_Datacloud\Datacloud\Marktmonitor.qvd (qvd);

But i will nog work.

I think it is not that dificult, can someone help me?

Thanks in advance!

2 Replies
Not applicable
Author

Hi

Note: Set analysis expressions cannot be used in the load script

I would do it like this:

LOAD     Establishment

, Sum(Amount) AS Total_Amount

FROM nnnnnn.QVD (qvd)

GROUP BY Establishment;

jagan
Partner - Champion III
Partner - Champion III

Hi,

Please find attached file. Hope it helps you.

Regards,

Jagan.