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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis with max and aggr

HI All,

can you please help with the following?

I need to translate in Qlik set analysis the follwoing query

select sum(TotalPayment) from (

select a.*, b.s_id as claimantUID2 from analytics.payment a

join analytics.Claimant b on a.ClaimantUID = b.s_id

join analytics.Claim c on b.ClaimUID = c.s_id

join ( select ClaimID, ClaimantID, max(claimantRank) as MaxClaimantRank

from analytics.Claimant where ClaimantDate <= '2011-01-01'

group by ClaimID, ClaimantID

) d on d.ClaimantID = b.ClaimantID and d.MaxClaimantRank = b.claimantRank

where a.Status = 'Issued' and

PaymentDate <= '2011-01-01'

) a

Thanks,

Francesco

3 Replies
agigliotti
MVP
MVP

Hi Francesco,

Could you please post a sample qvf in order to understand what you are trying to do?

There we will be able to see your chart object where you suppose to use Set analysis with max and Aggr.

As you posted here your request doesn't make sense.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Anonymous
Not applicable
Author

HI,

for now it's just a KPI showing the sum of the payments.

I need to use same logic used in SQL

agigliotti
MVP
MVP

ok but without a sample app with your data model, i think it's hard to help you in some way with your KPI object.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it