Equivalent of IFERROR(VLOOKUP,IF(RIGHT(- in Magic ETL
Hi Guys,
Hope all is good.
I am using Magic ETL and trying to create a flow replicating the current logic of my Excel file.
In Excel I have 2 datasets. On the Main sheet a column is categorizing using the formula =IFERROR(VLOOKUP(value,range,exact Match),IF(RIGHT(Category,2)="AB","Above","Below))
Now in Magic ETL data flow, I used Left outer join then I connected it to add formula, the formula I wrote: CASE WHEN (`Category`= null OR `Category` = '') AND RIGHT(TRIM(`Product Group name`),2)='AB' THEN 'Above' ELSE 'Below' END
But the output of the flow does not match on what is in my excel, the formula is superseded the left outer join.
Thank you All,
Answers
-
@aldwinB From what I can see, your Excel formula is looking for 'AB' at the end of the Category field, but your ETL formula is looking for it at the end of `Product Group name`. That may be contributing to why you don't see the same results.
Also, the correct syntax for checking for nulls is Category IS null, not Category = null.
2 -
Hi @MichelleH Thanks for the correct syntax for nulls.
The Excel Category field and ETL Product Group name is just the same. I just called them differently, they are just both values that I am trying to map as "Above" or "Below"
My ETL formula: CASE WHEN (`Category `IS null OR `Category` = '') AND RIGHT(TRIM(`Product Group name`),2)='AB' THEN 'Above' ELSE 'Below' END - Formula does overwrite some of those already identified in the prior Join.
The Category field already captured some "Above" or "Below" when the Join of the two datasets is done. Now, those that are null or doesn't have a match on the dataset Join shall be the ones where the formula should apply.
Thank you
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive