Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
yink-hpv
Contributor III
Contributor III

how to write script for Aggregate

Hi All:

i know Aggr isn't available for Script, is there any way we can develop for Script loading? thanks heaps

countryregionsalessales by Region
jap

Asia

80210
koranAsia70210
ukEuro5070
chinaAsia60210
franceEuro2070

what's the script i can calculate Sales by Region.

thanks heaps

5 Replies
sunny_talwar

Like this

Table:

LOAD country,

     region,

     sales

FROM ...;

Left Join (Table)

LOAD region,

      Sum(sales) as [sales by Region]

Resident Table

Group By region;

yink-hpv
Contributor III
Contributor III
Author

thanks Heaps Sunny

sunny_talwar

No problem at all

Please close the thread down by marking correct response.

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny

yink-hpv
Contributor III
Contributor III
Author

Hi sunny: i don't have correct answer to choose, so i marked as helpful.

sunny_talwar

Are you opening this thread or are you viewing it from the inbox? Inbox view doesn't show the option to select correct answer. Try clicking here to see if you see the option to mark correct answer

Re: how to write script for Aggregate