Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis of a sum ?

Hi i have Field 1, field 2, field 3 and field 4

i have to do the sum of field 1, 2 and 3 / 4

How do i do the sum of (field1 + field 2+ field3) with set analysis?

thank you

greetings

1 Solution

Accepted Solutions
Not applicable
Author

SORY if i didn't do myself clear.

I have only one expresion. is sum(VALOR). The fields are all in one dimmension.

I'm using this

=If(AGRUPA_CONCEPTO = 'BONIFICACIONES%'  ,

SUM({<CONCEPTO ={BONIFICACIONES_NC, OTRAS_BONIFICACIONES,BONIFICACIONES_PROV }>}VALOR) / 1000,

SUM(VALOR) / 1000)

The problem is that i don't have the sum in one field. I have it separated in three fields. Here the image

example.png

View solution in original post

4 Replies
swuehl
MVP
MVP

Why do you want set analysis here? Which selection do you want to apply?

I think something like

=Sum(Field1) + Sum(Field2) + ( Sum(Field3) / Sum(Field4) )

or

= Sum( Rangesum( Field1, Field2, Field3/Field4) )

might return what you want (I am not sure what you want, it's always better to post some sample data and exprected outcome).

Not applicable
Author

SORY if i didn't do myself clear.

I have only one expresion. is sum(VALOR). The fields are all in one dimmension.

I'm using this

=If(AGRUPA_CONCEPTO = 'BONIFICACIONES%'  ,

SUM({<CONCEPTO ={BONIFICACIONES_NC, OTRAS_BONIFICACIONES,BONIFICACIONES_PROV }>}VALOR) / 1000,

SUM(VALOR) / 1000)

The problem is that i don't have the sum in one field. I have it separated in three fields. Here the image

example.png

swuehl
MVP
MVP

It should work using a straight table with dimension AGRUPA_CONCEPTO and your expression.

You shouldn't use the second dimension, I believe.

sinanozdemir
Specialist III
Specialist III

swuehl‌ is right. you should not be using CONCEPTO dimension in order to collapse the totals:

Capture.PNG