I'm pretty sure this has been asked, but it may ha...
# questions
f
I'm pretty sure this has been asked, but it may have been too far back in the slack history. I'm seeing numbers in stacker that aren't respecting rounding parameters set in air table. The field type in airtable that is pushing the data is a "count" field. I've double checked that all formula fields feeding that count field are set to round the formula result. Any ideas?
✅ 1
m
I see the same issue
r
Yeah, it’s a bit confusing. Airtable’s settings in that regard are for display in Airtable only. The API sends over only the raw data, so you’d need setup something in the app itself if you want it displayed differently there.
f
Thanks for the info - does anyone know a good way to round numbers in Stacker? I’m not seeing anything in the field settings.
s
You can use something like this as a Stacker Formula field:
Round({field name})*1,0)
If you change the 1,0 to 100,0 it will change the rounding.
f
Yes but the field is in an air table table.
s
You can also use this formula in airtable. But you can still use formulas in Stacker using an Airtable field. Here is an example using a Stacker formula field on an airtable connected app:
f
Hi Brittany - I actually already have a round function running on the air table side, but as mentioned by someone else, for some reason air table isn't sending a rounded number. See my screen shots
s
Ah got it, then yes you would need to do this in Stacker to show the visual to your end users.
f
@rough-ability-90113 any thoughts on how the API can ignore a round function in a formula? Presumably it could just ignore other functions as well ?
Solved. Bad formulas on my end. Thanks @silly-pharmacist-44942 @rough-ability-90113
m
@fierce-magazine-93673 did you solve this in Airtable formulas itself?
f
Yes. It should’ve worked the way I had it configured on the parent fields for my Count field. So I put a round function on the count field as well. Round(sum(values),2) I never though to even try to round a count field.
I was doing it to the fields feeding that count field.
m
Ah got it. Will try the same. Thanks!