How do I lookup data from another data source? e.g. Validate US State abbreviation
New to Domo, but masterful with Excel/VBscript/Formulas - scenario, I have uploaded a spreadsheet with rows of data that have a 2 character STATE code column.
1. Source "A" -- The States can consist of US States or Canadian regions.
2. Source "B" -- I have added a separate data source spreadsheet to list/maintain US State and Canadian region codes, for use with "any" additional datasource
3. How can data source "A - any" have a default filter applied to show only US data based on matching the State Code against datasource "B-StateCode"?
4. I think of this almost like a SQL statement, SELECT * from SourceAworkbookexcel where State IN SourceBworkbookexcel..?? But not sure of the format/application in DOMO, treating the workbooks as tables?
Best Answer
-
The only way in Domo to have datasets affect each other is to join them using a dataflow.
You can set up a dataflow with a join a lot like that, and create a third output dataset, C, with which you'll build your cards. That way whatever states are in source B will affect how A and B produce output C.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1
Answers
-
The only way in Domo to have datasets affect each other is to join them using a dataflow.
You can set up a dataflow with a join a lot like that, and create a third output dataset, C, with which you'll build your cards. That way whatever states are in source B will affect how A and B produce output C.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1 -
For those interested, I used Magic ETL, joined the two sources on the STATE column, then filtered out duplicate rows....I believe there is a more efficient way as this may temporarily greatly inflate the dataset with not explicitely stating the type of join..?
1 -
Duplication might be reduced naturally, depending on the direction and cardinality of the join in your ETL join transform. If you're willing to share a snippet of sample data we could probably look at that more closely.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1 -
If I am understanding this correctly, you are not sure about the type of join you are using?
Just FYI, you can specify the type of join to use in Magic ETL by clicking on the symbol between the two datasets you will see when editing the "Join Data" step.
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive