# Unit name isn't passed to the IF=\>Then field

**URL:** <https://community.glideapps.com/t/unit-name-isnt-passed-to-the-if-then-field/55167>\
**Category:** Report a Bug\
**Created:** [November 29, 2022, 11:49am UTC](https://community.glideapps.com/t/unit-name-isnt-passed-to-the-if-then-field/55167 "2022-11-29T11:49:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thoughts](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thoughts/32/46790_2.png) [@Thoughts](https://community.glideapps.com/u/Thoughts)\
**Post date:** [November 29, 2022, 11:49am UTC](https://community.glideapps.com/t/unit-name-isnt-passed-to-the-if-then-field/55167/1 "2022-11-29T11:49:21Z")

</div>

1. In the data editor, I have a rollup field with “Units” set.
2. I create another IF-\>Then Field. where I want to handle three cases:  
a. if the count is 0 then keep the field empty  
b. if the count is 1 then write “1 Unit”  
c. if the count is more than 1 use the rollup field with the units.

the bug is that in this case the Units isn’t passed to the If=\>then field, and I’m left with only a number.

When I create the IF-\>then field I can see that the units are passed, until I add the condition to handle count=1 (2b in the list above). When I add this condition I only see the number without the unit name.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 29, 2022, 12:06pm UTC](https://community.glideapps.com/t/unit-name-isnt-passed-to-the-if-then-field/55167/2 "2022-11-29T12:06:58Z")

</div>

yeah, this is a known issue. Been there forever. I’d love to see this one fixed.  
The same happens with display formatting.

Workaround is to add a math column _after_ the if-then-else, and then re-apply your formatting and/or units.

---

<div class="post-metadata">

**Author:** ![Thoughts](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thoughts/32/46790_2.png) [@Thoughts](https://community.glideapps.com/u/Thoughts)\
**Post date:** [November 29, 2022, 12:11pm UTC](https://community.glideapps.com/t/unit-name-isnt-passed-to-the-if-then-field/55167/3 "2022-11-29T12:11:38Z")

</div>

Yea, Workaround is easy, It’s just that I have enough fields as it is - I’m reporting it hoping for a fix.
