Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rafael5958
Creator
Creator

scrioting table

What I have:

    

COLUMN  ACOLUMN B COLUMN CCOLUMN D
PAUL110099
TOM210099
MARY310099
PAUL210099
TOM310099

What I need:

 

COLUMN  ACOLUMN B COLUMN CCOLUMN D
PAUL120099

Hi all, what I need to do is show only when column B shows 1, or sum and show 1, 2 and 3, when it contains 1 in other row. For example, Paul in row 4 has the value 2, but it apears in row 1 with 1 too, so it is sum.

thanks

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello!

Try this expression:

=Sum({<[COLUMN B] = {'1'}>} Aggr(Sum([COLUMN C]), [COLUMN  A]))

Capturar.PNG

View solution in original post

2 Replies
Anonymous
Not applicable

Hello!

Try this expression:

=Sum({<[COLUMN B] = {'1'}>} Aggr(Sum([COLUMN C]), [COLUMN  A]))

Capturar.PNG

vishsaggi
Champion III
Champion III

Try this?

Col:

LOAD [COLUMN A]  AS A,

     [COLUMN B]  AS B,

     [COLUMN C]  AS C,

     [COLUMN D]  AS D

FROM

[https://community.qlik.com/thread/304787]

(html, utf8, embedded labels, table is @1);

LEFT JOIN(Col)

LOAD A,

     Min(IF(B = 1, 1, B)) AS BVal

Resident Col

Group By A;

Capture.PNG