With this I am close, but I am getting the whole list of TESTID List[Test ID], I just want the intances where RG_Name appears in the ERG List and grab the Test ID when it appears.
Here is the issue: I am trying to get only the instancesrows where ERGthe value of the RG_Name column shows up in the TestID ERG Listthe ERG List column value (an EnumList) of the TestID List table.
Nicolas_St-Laurent:
With this I am close, but I am getting the whole list of TESTID List[Test ID], I just want results from the intancesrows where the RG_Name column value appears in the ERG List column and grab the row’s Test ID column valuewhen it appears.
Nicolas_St-Laurent:
Using the functionexpression above brings back all TestID’s, not just TS_Security
You were very close, actually. Mine prefixes [RG_Name] with [_THISROW]., but it isn’t strictly needed in this case. The big difference is is the the list of values we’re comparing to.
In my case, the expression is using [ERG List], which refers to the ERG List column value of each row in the TestID List table. In your expression, you use SPLIT(TestID List[ERG List], ","), which first uses TestID List[ERG List] to create a list of allERG List column values in the TestID List table.
Since each ERG List column value is itself a list, and you’re creating a list from those, you’re creating a list of lists. SPLIT() “flattens” that list-of-lists into a single list of all the values in all of the component lists. Then you look to see if the RG Name value occurs in that list.
The problem here is that flattened list-of-lists includes the ERG List values from all rows in the TestID List table, which isn’t really what you want to check. You only want the current row’sERG List values.
In effect, your expression answers the question, “does this RG Name occur in anyERG List?”, where mine answers the question, “does this RG Name occur in this row’sERG List?”