Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

I can't get my sum to work

Morning everyone,

Can someone help me with the following sum please;

I'm trying to sum all AUMValue where the AUM_StartAt is the minimum within that field, I've got the following but it doesn't work

=sum(if(AUM_StartAt=Min(AUM_StartAt),AUMValue))

Can anyone help please?

1 Solution

Accepted Solutions
maxgro
MVP
MVP

sum(if(AUM_StartAt=max(TOTAL AUM_StartAt), AUMValue))

View solution in original post

11 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Try this:

if(AUM_StartAt=Min(AUM_StartAt, Sum(AUMValue))


let me know

nilo_pontes
Partner - Creator
Partner - Creator

Good morning Samuel,

Try: sum({< AUM_StartAt = {'$(=Min(AUM_StartAt)'} >} AUMValue)

Best Regards,

Nilo

tresesco
MVP
MVP

You can't use one aggregation function in another unless you use Aggr(). For your case take a variable and try like:

vMin=Min(AUM_StartAt)

Then expression like: =sum(if(AUM_StartAt=$(vMin),AUMValue))

Not applicable
Author

Hi Samuel

This will only give you the value of the min AUM_StartAt...

Can you give us some sample data to work with?

brgds,

Anthony

Not applicable
Author

Ok, this is what I've got (that works) I just need to try and avoid set analysis as I need the users to be able to interact with the chart and that currently isn't happening;

=sum({AUM_StartAt={'$(=date(Min(AUM_StartAt)))'}>}AUMValue)

I need to replicate this without using set analysis

nilo_pontes
Partner - Creator
Partner - Creator

Samuel,

Then try tresesco's solution.

Regards.

Not applicable
Author

I have tried that, unfortunately it returns a blank value. It's really rather odd.

sorrakis01
Specialist
Specialist

Hi,

try tresesco's solution.

I think is the correct answer.

Cy

maxgro
MVP
MVP

sum(if(AUM_StartAt=max(TOTAL AUM_StartAt), AUMValue))