Jan 04, 2025 12:24 AM
Hello everyone!
I need help with a formula that computes two fields as {field 1}/{field 2}.
However, the base is new for my team, and we're working to input backdated data, so some records that use these fields are 0 (zero), at the moment. The formula field that computes the two fields is used on current data, and we'd love to eliminate the infinity returns so as not to interrupt the SUMs we use in other areas of our work.
I've played around with several iterations of the formula and solved one to lose another 🤪
The current formula I'm using to keep us sane in the interim is:
Jan 04, 2025 12:53 AM - edited Jan 04, 2025 12:55 AM
You could just enclose the formula as If(formula<1(meaning less than 100% or whatever makes sense),formula)
it'll skip any value over 100% or 1, and return the proper values.
You may also use this helper: https://chatgpt.com/g/g-jw51xdpVz-vik-s-formula-helper
The Chatgpt responded with this:
IF(
AND(
{KGM 500 Total Attendance} > 0,
{KGM 500 Total Capacity} > 0
),
{KGM 500 Total Attendance} / {KGM 500 Total Capacity},
BLANK()
)
Jan 04, 2025 01:52 AM
Does this look right?
IF(
AND(
{Field 1},
{Field 2}
),
{Field 1}/{Field 2}
)
Jan 04, 2025 02:20 AM
Hi,
in your case, easiest way is:
IF({KGM 500 Total Attendance}*{KGM 500 Total Capacity},
{KGM 500 Total Attendance}/{KGM 500 Total Capacity})