Skip to main content
Solved

Arithmetic operations on Lookup using DQ evaluation rule in Ataccama One ui


I am making a DQ evaluation rule in ataccama one ui where I have to subtract each long value of catalogue item from its corresponding long value in lookup and if the difference is greater than 100, I want to raise that particular value as invalid sample, so far I am not able to achieve this, it would be great if anyone can help me with this.

Best answer by Lisa Kovalskaia

​@Ayush kumar glad I could help!

Refreshing lookups used in component rules requires some additional setup, since there's currently no way to "link” a lookup from the Web app to a component.

Typically an orchestration workflow is configured to run a lookup building plan on schedule and to place fresh lookup file(s) into the expected location(s). The validation component, and more specifically the Lookup step in it, should be look for the resource in that location (e.g. MinIO object storage). The file will change but the resource path should remain the same so that the component continues working automatically.

If you haven't worked with orchestration workflows before, here's a couple of links to get you started:

https://docs.ataccama.com/runtime-server/latest/workflow-and-scheduler/workflow-and-scheduler.html

Once you have the workflow it can be easily used to establish a refresh cadence for many lookups. Please let me know if you have additional questions!

View original
Did this topic help you find an answer to your question?

6 replies

Lisa Kovalskaia
Ataccamer
Forum|alt.badge.img+3

​@Ayush kumar I would turn to the ONE Desktop app here and build a component rule. Using the Lookup step, you can not only check that the given value matches one of the values in the lookup file, but also capture the specific lookup key value that was found in the file. That is not something you can do in the web app.

In the Lookup step configuration, use the lookup.key expression to store the value into some working column:

From there you could calculate the difference between the src_value and the working column, and decide the VALID/INVALID result based on the outcome.

Does that help?


  • Author
  • Data Enthusiast
  • 6 replies
  • March 7, 2025

Thanks for the solution ​@Lisa Kovalskaia. That's quite helpful, just wanted to know how can I make this solution possible, I mean I am having my lookup and catalog item in web version, how can I establish a connection in between web version and desktop version and take my lookup and CI there , it would be great if you can provide any link of ataccama support/help document or link of any related community post.


Lisa Kovalskaia
Ataccamer
Forum|alt.badge.img+3

​@Ayush kumar sure, first off, please connect your ONE Desktop to your ONE Platform:

With that integration, you can access and work with many key assets of the Web app, here's more on that:

For your specific use case, you’ll want to build a DQ rule that relies on a validation component:

https://docs.ataccama.com/one/15.4.0/data-quality/validation-components.html#working-with-validation-components

Note that you will need to download the lookup file you have in your ONE Web app and upload it to the component in ONE Desktop - once you publish the component the lookup file will be uploaded and stored in Ataccama's object storage. Please refer to ONE Desktop Tutorials available within the app for additional info and examples.

When the component rule is ready, you can go back to your ONE Web app and apply the rule to a catalog item - just like you would apply any other rule built in the Web app. 

I would also encourage you to check out the Ataccama Academy, there's a wealth of resources for self-paced learning, could serve as a great reference for all things Ataccama.

If you have additional questions, let me know!


  • Author
  • Data Enthusiast
  • 6 replies
  • March 12, 2025

​@Lisa Kovalskaia your replies are helping me immensely would be following this method, just wanted to know if we have an automated process to - download the lookup file i have in my ONE Web app and upload it to the component in ONE Desktop because this lookup file is updated daily following a schedule and it will be quite challenging for me to update this lookup file everyday for various rules.


Lisa Kovalskaia
Ataccamer
Forum|alt.badge.img+3

​@Ayush kumar glad I could help!

Refreshing lookups used in component rules requires some additional setup, since there's currently no way to "link” a lookup from the Web app to a component.

Typically an orchestration workflow is configured to run a lookup building plan on schedule and to place fresh lookup file(s) into the expected location(s). The validation component, and more specifically the Lookup step in it, should be look for the resource in that location (e.g. MinIO object storage). The file will change but the resource path should remain the same so that the component continues working automatically.

If you haven't worked with orchestration workflows before, here's a couple of links to get you started:

https://docs.ataccama.com/runtime-server/latest/workflow-and-scheduler/workflow-and-scheduler.html

Once you have the workflow it can be easily used to establish a refresh cadence for many lookups. Please let me know if you have additional questions!


  • Author
  • Data Enthusiast
  • 6 replies
  • March 17, 2025

Thanks ​@Lisa Kovalskaia, its quite helpful, I would go through this, in case I am having any doubts I would ask you.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings