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: 
Kat92
Contributor III
Contributor III

Aggregation of rows

Hi,

I have created the following calculation in set analysis in order to substract remaining time if it is more than 1 . It seems to be working great in a table with my field but it does not sum the total.

How can I roll up the following in order to calculate the total sum of all these cases?

 

if(
[Total per Day] > 1,
if(
sum(OutofField) >= ([Total per Day] - 1),
sum(OutofField) - ([Total per Day] - 1),
0
),
sum(OutofField)

 

Labels (2)
1 Reply
MayilVahanan

Hi

Try like below

sum(Aggr(if(
[Total per Day] > 1,
if(
sum(OutofField) >= ([Total per Day] - 1),
sum(OutofField) - ([Total per Day] - 1),
0
),
sum(OutofField)), urdimensons))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.