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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
dhanu_today
Creator
Creator

Aggr help


Hi Every one,

How we got the output as below.

Output:

TYPEPOSITIVENEGATIVEGROWTH
MANUFACTURE860-400460
DELIVERED420.5-250.02170.48
IN PROCESS2472-342438

Input Data:

TYPENUMBERVALUE
MANUFACTURE5100
MANUFACTURE10-110
MANUFACTURE15120
MANUFACTURE20-130
MANUFACTURE25140
MANUFACTURE30150
MANUFACTURE35-160
MANUFACTURE40170
MANUFACTURE45180
DELIVERED12200
DELIVERED170
DELIVERED18220
DELIVERED19-0.02
DELIVERED200.05
DELIVERED21-250
IN PROCESS67400
IN PROCESS38430
IN PROCESS343-34
IN PROCESS464466
IN PROCESS46565
IN PROCESS46645

Thanks,

Dhanu

1 Solution

Accepted Solutions
luis_pimentel
Partner - Creator III
Partner - Creator III

You don't need de AGGR function. Use a table with type as dimension, and for the expressions:

POSITIVE: if (VALUE > 0 ,sum(VALUE))

NEGATIVE: if (VALUE < 0 ,sum(VALUE))

GROWTH: sum(VALUE)

View solution in original post

6 Replies
luis_pimentel
Partner - Creator III
Partner - Creator III

You don't need de AGGR function. Use a table with type as dimension, and for the expressions:

POSITIVE: if (VALUE > 0 ,sum(VALUE))

NEGATIVE: if (VALUE < 0 ,sum(VALUE))

GROWTH: sum(VALUE)

hic
Former Employee
Former Employee

If your goal is to split up the "VALUE" in negative and positive numbers, you don't need any Aggr().

Sum( if(VALUE>0,VALUE) ) as POSITIVE

Sum( if(VALUE<0,VALUE) ) as NEGATIVE

Sum( VALUE ) as GROWTH

or the same with Set Analysis

Sum( {$<VALUE={">0"}>} VALUE ) as POSITIVE

Sum( {$<VALUE={"<0"}>} VALUE ) as NEGATIVE

Sum( VALUE ) as GROWTH

HIC

alexandros17
Partner - Champion III
Partner - Champion III

Here it is ...

Hope it helps

MK_QSL
MVP
MVP

Like this..

ashwanin
Specialist
Specialist

HI Dhanu,

Use formula

Sum( {$<VALUE={">0"}>} VALUE)  for +ve Values

Sum( {$<VALUE={"<0"}>} VALUE)  for -ve Values

Sum( VALUE ) for growth.

Please find the qvw for same.

dhanu_today
Creator
Creator
Author

Thanks all ...All are working...