# Math question

**URL:** <https://community.glideapps.com/t/math-question/52328>\
**Category:** Ask for Help\
**Created:** [October 23, 2022, 9:20am UTC](https://community.glideapps.com/t/math-question/52328 "2022-10-23T09:20:01Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![erwblo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/erwblo/32/75_2.png) [@erwblo](https://community.glideapps.com/u/erwblo)\
**Post date:** [October 24, 2022, 2:00pm UTC](https://community.glideapps.com/t/math-question/52328/21 "2022-10-24T14:00:50Z")

</div>

> [@Darren\_Murphy](#):
>
> Okay, for this case you probably won’t have any easy way to set the CompanyID column in the helper table. But, you should know from the User Profile which company the user is associated with, yes? Perhaps you already have the CompanyID stored in the user profile?

Yeah, I do have all that, but how do I get that in the Company-ID table of the Helper page? I think this must be a stupid question 😉

---

<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:** [October 24, 2022, 2:04pm UTC](https://community.glideapps.com/t/math-question/52328/22 "2022-10-24T14:04:09Z")

</div>

> [@erwblo](#):
>
> Yeah, I do have all that, but how do I get that in the Company-ID table of the Helper page? I think this must be a stupid question

No, of course not. You don’t actually need it in the helper table. See below:

> [@Darren\_Murphy](#):
>
> Then you can make both of the above work together by adding an if-then-else column in your helper table:
> 
> - If (user specific) CompanyID is empty, then User Profile → CompanyID
> - Else (user specific) CompanyID

So the if-then-else column will help cover both cases: Admin and normal user.  
If an Admin is logged in, we use the value from the User Specific CompanyID column, otherwise (if it’s a non-admin user), we use the value from the User Profile.

Make sense?

oh, and then just in case it isn’t obvious… the single value column in your helper table will take the value from the if-then-else column instead of the user specific (CompanyID) column.

---

<div class="post-metadata">

**Author:** ![erwblo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/erwblo/32/75_2.png) [@erwblo](https://community.glideapps.com/u/erwblo)\
**Post date:** [October 24, 2022, 3:40pm UTC](https://community.glideapps.com/t/math-question/52328/23 "2022-10-24T15:40:17Z")

</div>

I feel like I have it working! I will try more specific later.

---

<div class="post-metadata">

**Author:** ![erwblo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/erwblo/32/75_2.png) [@erwblo](https://community.glideapps.com/u/erwblo)\
**Post date:** [October 24, 2022, 3:47pm UTC](https://community.glideapps.com/t/math-question/52328/24 "2022-10-24T15:47:46Z")

</div>

@Darren_Murphy And my big remaining question will be: now I’ve got it working, do I understand what I’ve done? 😉

---

<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:** [October 24, 2022, 3:51pm UTC](https://community.glideapps.com/t/math-question/52328/25 "2022-10-24T15:51:54Z")

</div>

hehe, well only you can answer that question 🙂

But like anything else, the more you do, the more you learn, the more you understand. I consider myself reasonably proficient with Glide, but I still find myself learning new things almost every single day 🙂

---

<div class="post-metadata">

**Author:** ![erwblo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/erwblo/32/75_2.png) [@erwblo](https://community.glideapps.com/u/erwblo)\
**Post date:** [October 24, 2022, 3:57pm UTC](https://community.glideapps.com/t/math-question/52328/26 "2022-10-24T15:57:22Z")

</div>

This is the theme from my newsletter tomorrow 😉 You guys know a lot more than I know, but I know a lot more than others. I can make a video that shows people how easy it can be to make an app, but that’s only because I put a lot of time in Glide. Everyone can do what I can, but they need to put in the hours too 😉

---

<div class="post-metadata">

**Author:** ![erwblo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/erwblo/32/75_2.png) [@erwblo](https://community.glideapps.com/u/erwblo)\
**Post date:** [November 19, 2022, 8:40am UTC](https://community.glideapps.com/t/math-question/52328/27 "2022-11-19T08:40:30Z")

</div>

I had the same sort of issue again this week. Single \<\> Multiple Relation. Maybe I’m the only one not realizing this, but it would be great if Glide had more ‘help’ embedded!

[Previous page](https://community.glideapps.com/t/math-question/52328.md?page=1)
