Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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.