Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SUMIFS in Qlik

Hi

I am new to Qlik and I was usually using Excel in before.

Here is a case I would like to use something similar to "SUMIFS" but I am not quite sure how to write in on Qlik.

For example:

TypeValueSUMIFS
A1030
B3545
A2030
B1045

I have a "Type" column and "Value" column. I would like to sum all the value according to the "Type" and show the total of each type in the "SUMIFS" Column.

Could anyone suggest a method for me how to work on this kind of situation?

Many Thanks.

Felix

2 Replies
sunny_talwar

Try this

Dimension

Type

Value

Expression

Sum(TOTAL <Type> Value)

ahmar811
Creator III
Creator III

Hi,

Please use below script and also find attached qvw file for your reference.

TabA:

load * Inline [

Type, Value

A ,10

B ,35

A ,20

B ,10

];

Left Join

load Type, Sum(Value) as SUMIF

Resident TabA Group by Type;

Output:


Capture.PNG

Regards

Ahmar