Hey guys, I know in a saved search I can sum a for...
# general
a
Hey guys, I know in a saved search I can sum a formula field that uses the CEIL function, but is there any way to CEIL the sum? So if I had 3 results of .1,.1, and .1, it would sum .3 and then CEIL to get 1.
🤐 1
r
So, I think I found an answer for you on this with a quick google search. It appears someone else has used the CEIL function in a saved search. Example was to see how many days have elapsed since an order was placed, you could do CEIL({trandate}-{today}) which would give you an integer number.
a
Hi Ricardo, thanks. I know I can use CEIL in the formula and then sum, but that would return 3 from my example as opposed to 1. I'm trying to sum the results first, and then CEIL
i don't think it's possible
r
if you nest the functions, it would
CEIL(sum({qty1},{qty2}))
a
so don't use the summary type of SUM, and just do the formula as CEIL(SUM(
interesting, i'm going to try it
and maybe use Max as my summary tyoe
type
thanks
r
yeah, summary types get tricky with saved searches. They have their good uses for sure, but I try to stay away from them if I can, as they limit flexibility in a lot of cases.
a
👍 thank you!
m
I can't find a way to easily CEIL, but it's definitely possible to round.
For example:
Type - Transaction
Field - Amount
Summary Type - Sum
Function - Round
a
Hi Michael, we got this figured out. In a summary search, use AVERAGE, and in the formula use CEIL(SUM(your expression)) and I got the desired result 👍