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: 
simoevry
Contributor
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
sunny_talwar

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))))

View solution in original post

6 Replies
sunny_talwar

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
Contributor
Contributor
Author

not work for me I get negative value.

thanks a lot for your reply

Qeror.JPG

 

sunny_talwar

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

simoevry
Contributor
Contributor
Author

OK Smiley Happy

 

sunny_talwar

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
Contributor
Contributor
Author

thanks a lot it's work for me