Skip to main content
Question

How to identify if a list of given values is present in an attribute

  • November 12, 2025
  • 3 replies
  • 77 views

I have a requirement to develop a rule that checks value of an attribute should be from a given list of values. The attribute should have at least one record of each of the list item. It should fail if any of the values donโ€™t appear in the attribute. I cannot consider lookup as lookup will perform OR operation on the given list, instead I would like to have AND operation.ย 

e.g., list of values List1 = {1,2,3,4,โ€™pqrโ€™, โ€˜abcโ€™}, column name = Col1

Test case - Col1 should have at least one entry of each item from List1. It should fail if any of the 6 values from List1 fail to appear in Col1 values

ย 

Thanks for the help in advance!

ย 

3 replies

ivan.kozlov
Ataccamer
Forum|alt.badge.img+3
  • Ataccamer
  • November 19, 2025

Hi โ€‹@mp_ataccamauserย ,
Iโ€™m not sure if i understand your requirements correctly but it looks like the rule you describe is supposed to evaluate the dataset as a whole and not individual rows of data, as thatโ€™s the only way to to verify that the value from a list appear in specific attribute/column in the datasetย at least once.

The rules you create in Ataccama web-appย perform DQ evaluation on per-row basis. If you need to do something like uniqueness check - you can use aggregation as well to group items base on some criteria, but i canโ€™t think of a way to implement the rule you need using standard rule capabilities.


  • Author
  • Star Blazer L3
  • November 20, 2025

Hi โ€‹@ivan.kozlovย yes, we would need to perform the check on whole dataset needing aggregations. Do u suggest any implementations using One Desktop if web implementations could possibly be limited in this case?

Thanks in advance!


ivan.kozlov
Ataccamer
Forum|alt.badge.img+3
  • Ataccamer
  • November 20, 2025

โ€‹@mp_ataccamauserย in general for aggregation checks we recommend using Aggregation rules in web application, however i canโ€™t think of a way to implement the logic you need using this type of rules.
I believe ONE Desktop might be a better tool for the job here as youโ€™d probably need to build a logic to what will take all the values in specific column, put them together and then generate a list of unique column values that can be compared against reference data.