Logical and/or/not operators

More
4 years 10 months ago #21322 by jacksparrow777
Hi Team,

I am trying to apply conditions based on multiple fields. Something like below. Is this possible through transformation
if (field1 == i and field2 == h) then
Please let me know how to combine such operations

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #21323 by admin
Replied by admin on topic Logical and/or/not operators
Can you provide more context, please?
If you trying to do it inside the transformation this one thing
if creating a package is another thing

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #21324 by jacksparrow777
Yes, I am trying to do it inside transformation.
I have two columns as input and have to populate a third column based on combination of input columns.
Please find the attached screenshot of my sample task. Based on combination of Category and Amount I need to populate column Output.
Could you please let me know if this possible inside transformation.
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #21325 by admin
Replied by admin on topic Logical and/or/not operators
Thank you for the clarification.
You can combine two fields together and then use compare values transformation
/wiki/advanced-etl-processor/transformation-functions/miscellaneous/compare-values/

we can create a working example for you if you wish

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #21326 by admin
Replied by admin on topic Logical and/or/not operators
Please have a look a the following example
www.etl-tools.com/automation/0019-compare-two-values.html
I hope you will find it usefull

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #21327 by jacksparrow777
Hi Team, Thank you for the suggestions. I used calculation transform to acheive this

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save