# Addition of two Relations (match simple)

**URL:** https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052
**Category:** Ask for Help
**Created:** [July 24, 2020, 2:51pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052 "2020-07-24T14:51:38Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![noneight](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noneight/32/5351_2.png) [@noneight](https://community.glideapps.com/u/noneight)
#### Post date: [July 24, 2020, 2:51pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/1 "2020-07-24T14:51:38Z")

</div>

Hello Guyz 😀,

Do you know if there is anyway to additionate two relation like :

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/d/d2ec2dc68504b7b4bc00e27683e234f6453fcb10.png)

In order to have something like :  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/6/6bd71dcfea9044022a42d7e84ef705e9faab268a.png)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 2:53pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/2 "2020-07-24T14:53:34Z")

</div>

How are you structuring the destination sheet where you match the relation?

---

<div class="post-metadata">

### Author: ![noneight](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noneight/32/5351_2.png) [@noneight](https://community.glideapps.com/u/noneight)
#### Post date: [July 24, 2020, 2:56pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/3 "2020-07-24T14:56:37Z")

</div>

Hey ThinhDinh 🙂,

Here your answer :

 ![TEST3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/a/ae73a2f7146cfa3f233fd558d910bf87dc558a33.gif)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 3:00pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/4 "2020-07-24T15:00:53Z")

</div>

I would imagine to have something like you want you must structure it like “Marble color - Race posiiton 1 - Race position 2” and match the marble color together.

---

<div class="post-metadata">

### Author: ![noneight](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noneight/32/5351_2.png) [@noneight](https://community.glideapps.com/u/noneight)
#### Post date: [July 24, 2020, 3:13pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/5 "2020-07-24T15:13:47Z")

</div>

In a Rule Tab? or Leaderboard Tab?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 3:18pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/6 "2020-07-24T15:18:21Z")

</div>

Match the marble color in Leaderboard sheet to the marble color in the the sheet where you store the race results (do you structure it like Marble color, Race number, Race position?). Set it to match multiple.

In the sheet where you store the race results, relate the race position to the Rule sheet and use a lookup to get the points back.

Then in the Leaderboard sheet, make a rollup of the original relation in the 1st step, get the sum of the points you just get via the lookup.

Does it make sense?

---

<div class="post-metadata">

### Author: ![noneight](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noneight/32/5351_2.png) [@noneight](https://community.glideapps.com/u/noneight)
#### Post date: [July 24, 2020, 3:25pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/7 "2020-07-24T15:25:46Z")

</div>

I don’t get it.  
**Leaderboard** tab is where i store all data. Room / marble colors choosen per room etc…

**Rule** tab, is where i store result (i shoul hve called it “result” 🤣 )

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/3/3c7fc4ac32ea3d6c484ecefc8f43f15ebf6d8744.png)

Each result race will be a new column. (example : Race 3)

With that cofiguration do you have an idea 😬

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 3:28pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/8 "2020-07-24T15:28:15Z")

</div>

Can you match a marble color to an array column (the races)? I guess not?

---

<div class="post-metadata">

### Author: ![noneight](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noneight/32/5351_2.png) [@noneight](https://community.glideapps.com/u/noneight)
#### Post date: [July 24, 2020, 3:35pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/9 "2020-07-24T15:35:28Z")

</div>

> [@ThinhDinh](#):
>
> array

It is what i did no 🤔

 ![TEST3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/e/e483ba1c40945b02ce6c1b6b05fc49ac819e2ad4.gif)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 3:37pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/10 "2020-07-24T15:37:25Z")

</div>

You match it to only one column, what I mentioned was an array column.

---

<div class="post-metadata">

### Author: ![noneight](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noneight/32/5351_2.png) [@noneight](https://community.glideapps.com/u/noneight)
#### Post date: [July 24, 2020, 3:40pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/11 "2020-07-24T15:40:14Z")

</div>

It works !!! thanks a lot ThinhDinh, again 🎆

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 3:41pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/12 "2020-07-24T15:41:00Z")

</div>

Oh I learned something new as well, I have not tried this lol.

---

<div class="post-metadata">

### Author: ![noneight](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noneight/32/5351_2.png) [@noneight](https://community.glideapps.com/u/noneight)
#### Post date: [July 24, 2020, 4:09pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/13 "2020-07-24T16:09:02Z")

</div>

Okay so i am close to my goal.

Now i have thoses data in my **leaderboard tab** , and i would like to have the same one in my **user pofil tab**  
I tried with a simple look up from my **user pofil tab** , but i can’t, it would be too easyer…

 ![TEST3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/0/08657f266a97e005430502d55445ca9c52931aa8.gif)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 4:11pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/14 "2020-07-24T16:11:58Z")

</div>

Why can’t you make a relation for that? In the Leaderboard tab you have the email of the user as well right?

---

<div class="post-metadata">

### Author: ![noneight](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noneight/32/5351_2.png) [@noneight](https://community.glideapps.com/u/noneight)
#### Post date: [July 24, 2020, 4:14pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/15 "2020-07-24T16:14:29Z")

</div>

I think i did. No ? 🤨

 ![TEST3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/4/4b67a188f7433e95d7a350e0eb610ec68b0d6953.gif)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 4:20pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/16 "2020-07-24T16:20:19Z")

</div>

What are you trying to bring back from the leaderboards tab? Isn’t it the score total column?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 4:20pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/17 "2020-07-24T16:20:49Z")

</div>

If you’re setting the match to a multiple, would the total points be calculated by a sum rollup on that leaderboard relation?

---

<div class="post-metadata">

### Author: ![noneight](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/noneight/32/5351_2.png) [@noneight](https://community.glideapps.com/u/noneight)
#### Post date: [July 24, 2020, 4:24pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/18 "2020-07-24T16:24:04Z")

</div>

I am sorry, no.  
I am want to bring back the **All Position** column from the **leaderboard** to the **user profil**

 ![TEST3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/7/78f2611c192cd6f77d16b8c7ea27c62656cd9190.gif)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 4:27pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/19 "2020-07-24T16:27:08Z")

</div>

So you have the emails in multiple rows and now you want to bring back all positions related to that email in those rows? I’m not sure if that is even possible.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 24, 2020, 4:28pm UTC](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052/20 "2020-07-24T16:28:31Z")

</div>

If you have a relation - lookup bringing back all choices of marble color associated to an email in a column in your user profiles, can you make a relation to match that lookup with the array column in the Rules sheet?

[Next page](https://community.glideapps.com/t/addition-of-two-relations-match-simple/13052.md?page=2)
