Query of a split value in a second split value

Hi!

I have this two sheets, one for news, one for opportunities. What i would like to reach is to have in sheet opportunies all the news of a single company.

The problem here is that there are news with two or more companies associated. So if I query the split column of the opportunities associated with the name of the opportunity, the result of the query is that it extract only the news with one name.

Like this:

  • News of the opportunity A ->Query News for the opportunity A
  • News of the opportunities A & B → Opportunity A & B doesn’t have nothing

What I would like to have:

  • News A & B → each opportunities have the same news

Some screens here of the properties that I tried to set.

Glide_screen_3

Glide_Screen_2

Thanks for any help :pray:

Having a little difficulty following, but could you please show:

  • an example of what your raw data looks like
  • an example of your desired end result

Yep @Darren_Murphy,

I created this file with raw data and result that i want:

So from your example, the Opportunity column in your News table should be computed, yes?

  • Create a Split Text column in your Opportunities table that targets the second column
  • Create a relation column in your News table that matches the name with the split text column in the Opportunities table

I’m not sure if that’s exactly what you are looking for?

I feel like this should work. Comparing an array to an array should trigger a match if any one item matches in both arrays. What I’m a bit suspicious on is extra spaces between items in your comma delimited list. Out of curiosity, does anything that includes ‘Startup Bakery’ happen to work?

In part,

Because what I have is the Name in table “Opportunities”, Name and Opportunity in table “News”

I’m interested in Relation News in table “Opportunities”, made by a relation/query column on table “News”!

It’s more clear?

Yes but only the news with one opportunities name: Startup Bakery!

So if the field opportunities in a news are “Startup Bakery, Sb Lab”, it become empty…

I think I’m mistaken. Did a quick test. With a Query, all array items need to match on both sides for the query to return a row. Not just one array item. On the other hand, it does work like you want it to with a Relation column (which is why I thought the Query would be the same). The only downside is that you can’t include your update boolean in the relation.

This feels like a bug with the Query column to me. In my experience, comparing two arrays should return a match if at least one item is in both arrays.

Yes, what I mean…

For you, is there a possibility to “go around” this query error with another layout?

In the News table, I would create an IF column that returns the ‘split company’ column values only if ‘Investor Update’ is checked. Then replace the Query in your Opportunities table with a Relation that matches ‘Name copy’ to the IF column.

Another alternative is to not create the IF column, but still create the relation by linking ‘Name copy’ to the ‘split company’. Then just set a filter in the collection (if you are only displaying the relation as a collection) to only show rows with ‘Investor Update’ checked.

1 Like

I will follow your suggest.

Thanks :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.