Compare two lists only one way?

Hi

I want to have a comparison in a "Valid if" field, where I want to filter all the rows from List A that has an equivalent in List B, but not necessarily the other way around. Let's say

CorneliusH_0-1728766365859.png

I tried a few formulas and ideas in a Virtual Column and came up with this:

COUNT([AGREGAR_MEZCLA].[LIST_1])-
COUNT(INTERSECT(
LIST_2),[AGREGAR_MEZCLA].[LIST_1]
))=0

Basically I am counting the elements of list 1, and counting the shared elements of both lists; if the result is 0, it is fine; else it should not appear in the Valid If field. However when I paste that formula in the "Valid If" field of the other column and enclose it in a "Select" to get the desired Valid list, it gives me an error:

INTERSECT does not accept a list of list.

How can I avoid that and keep the basic formula? or maybe a better solution?

0 3 177
3 REPLIES 3

Steve
Platinum 5
Platinum 5

Try something like this:

ISBLANK([List 1] - [List2])

Returns TRUE is [List 2] includes at least every item in [List 1].

Same result. "Cannot compare list with list of lists". 

Maybe it is because list 2 is a dereference to a different row from the same list 1. What I want to achieve is, to have a list of items that share some components in common. It is something like the ABO blood type: O can be added to A, but A is not ok for O type.

 

Item ComponentsCompatible Items
Item 1ABCItem 1, Item 2, Item 8
item 2ABCItem 1, Item 2, Item 8
Item 3ABCDItem, 1, Item 2, Item 3, Item 4, Item 5, Item 8, Item 9
Item 4ABCDItem, 1, Item 2, Item 3, Item 4, Item 5, Item 8, Item 9
Item 5ABDItem 5, Item 8, Item 9
Item 6ABGItem 6, Item 8, Item 9
Item 7ABDGItem 5, Item 6, Item 7, Item 8, Item 9
Item 8ABItem 8
Item9ABDItem 5, Item 8, Item 9

 

It feels like another dead end I have to leave open open for now.

Please provide screenshots of the column configurations of the columns involved.

Top Labels in this Space