Help with Formula/ Beast mode to concat values based on unique key
Hi All,
I am trying to write a beast mode formula from the input table below:
to the output table
Basically I am trying to group by pickno and then group the code R into the column Reason and the code S into the column shipinstruction (combining the names and the reason or shipping instruction)..
Can you please help me here..I am attaching the excel sheet for your reference..
Best Answer
-
I think you just have a syntax error. You should not have "as reason" in your case statement. The syntax for case in Domo is:
CASE
WHEN .... THEN
ELSE
END
Otherwise, as long as your column names are valid, the formula should work (although you may want to add a space before 'reason' so that you have a space in the final value).
1
Answers
-
Hi All, Any help on this would be appreciated!
0 -
Is there a reason you need to do this in a beast mode? This would be easier to do in an ETL - you could use a formula tile to concatenate the names and reason and then the names and ship instruction, and then do a group by tile to group on pickno.
0 -
You're not able to do this in a beast mode. You can use a GROUP BY tile in Magic ETL and tell it to separate the values by commas as your aggregation method.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
I am getting an error when I try to do the following formula
CASE WHEN `REASONORINSTRUCTIONCODE`='R' THEN CONCAT('name-',`USERWHOENTEREDTHISLINE`,'reason-',`REASONSORSHIPPINGINSTRUCTIONS`) ELSE '' END as reason
Can you please help here..
0 -
I think you just have a syntax error. You should not have "as reason" in your case statement. The syntax for case in Domo is:
CASE
WHEN .... THEN
ELSE
END
Otherwise, as long as your column names are valid, the formula should work (although you may want to add a space before 'reason' so that you have a space in the final value).
1
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 659 Datasets
- 116 SQL DataFlows
- 2.2K Magic ETL
- 816 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 82 App Studio
- 45 Variables
- 776 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 82 Workflows
- 23 Code Engine
- 40 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 1 AI Projects and Models
- 18 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 144 Manage
- 140 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive