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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
prabuj
Contributor III
Contributor III

How to sum a column with multiple conditions in Talend ?

Dear Team,

@richard Hall @Xiaodi Shi

I have a requirement like this :

SUM ( COLUMN ) where a ='1' AND b= '2' AND CNO=DNO

How to achieve this in Talend ? Please provide me a example with sample data to understand it clear.

Thanks in advance.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

Take a look at tAggregateRow component, this component is used to perform aggregation operations including sum, avg, first, count etc..

Assuming a, b CNO, DNO are the column names in your case? I think you need to filter the data using tFilterRow before tAggregateRow.

 

Regards

Shong

 

View solution in original post

3 Replies
Anonymous
Not applicable

Hi

Where are data from? If you are reading data from database, you just need a tDBInput component to run a query.

 

Regards

Shong

prabuj
Contributor III
Contributor III
Author

Hi @Shicong Hong​ 

 

The data is coming from a csv file. Could you please help out with a example.

 

Thanks in advance.

Anonymous
Not applicable

Hi

Take a look at tAggregateRow component, this component is used to perform aggregation operations including sum, avg, first, count etc..

Assuming a, b CNO, DNO are the column names in your case? I think you need to filter the data using tFilterRow before tAggregateRow.

 

Regards

Shong