Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
simoevry
New Contributor

Sum total with above not correct

Hi Everyone,

I need help for total result is not correct if someone can help Im begginer thanks

this my expression :

If(RowNo()=0 ,sum( aggr(FABS((Max(W_B1)))-above(Max(W_B1)),Date)),max(W_B1)-Above(max(W_B1)))/100

 

It should be get 24517,83 NOT 21873,82

 

 

Qeror.JPG

 

 

Labels (3)
1 Solution

Accepted Solutions

Re: Sum total with above not correct

Can you try this

Sum(Aggr(
If(RowNo() = 0, Sum(Aggr(fabs((Max(W_B1))) -Above(Max(W_B1)), (Date, (NUMERIC)))), Max(W_B1) - Above(Max(W_B1)))/100
, (Date, (NUMERIC))))
6 Replies

Re: Sum total with above not correct

May be try this

Sum(Aggr(
If(RowNo() = 0, Sum(Aggr(fabs((Max(W_B1))) -Above(Max(W_B1)), Date)), Max(W_B1) - Above(Max(W_B1)))/100
, Date))
simoevry
New Contributor

Re: Sum total with above not correct

not work for me I get negative value.

thanks a lot for your reply

Qeror.JPG

 

Re: Sum total with above not correct

Would you be able to share a sample to test this out?

simoevry
New Contributor

Re: Sum total with above not correct

OK Smiley Happy

 

Re: Sum total with above not correct

Can you try this

Sum(Aggr(
If(RowNo() = 0, Sum(Aggr(fabs((Max(W_B1))) -Above(Max(W_B1)), (Date, (NUMERIC)))), Max(W_B1) - Above(Max(W_B1)))/100
, (Date, (NUMERIC))))
simoevry
New Contributor

Re: Sum total with above not correct

thanks a lot it's work for me