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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Jj5
Contributor III
Contributor III

How do I aggregate multiple columns with the tAggregateRow component?

I have a use case that follows:

LoanID | Address | PolicyNo | InsuranceType

101 | 123 Main St | Pol123 | Hazard

101 | 123 Main St | Pol122 | Flood

101 | 101 Open Blvd | Pol2 | Flood

102 | 111 Second St | Pol111 | Hazard

102 | 111 Second St | Pol333 | Flood

103 | 137 Third St | Pol222 | Wind

103 | 119 Fifth St | Pol 1234 | Hazard

 

I need to return the rows that have duplicate LoanIDs and also duplicate Addresses and not having the value "Hazard" as the InsuranceType. So with the sample data set I would need it to return only

 

101 | 123 Main St | Pol122 | Flood

102 | 111 Second St | Pol333 | Flood

Labels (4)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

You can do with many ways. Try to do with use tsortrows by sorting on loanid and address and use tuniquerows component and take duplicate records from main. If your seeing any deference you need to play with sorting the data in required way.

View solution in original post

1 Reply
manodwhb
Champion II
Champion II

You can do with many ways. Try to do with use tsortrows by sorting on loanid and address and use tuniquerows component and take duplicate records from main. If your seeing any deference you need to play with sorting the data in required way.