Grouping after Split Function
So I'm running into a bit of a snag. Say I wanted to just do the Beast Mode element and pull just what's in the Title(Column) for example:
All this info is in the Title separated by a | if I wanted to pull the System name from the title and then group it along with others that come in with the same format but create a group for them to be displayed on the card.
System | Application | Client | Problem
Just need a way to take that split after and create a specific group for them, it's no more than 6 and everything else can be other.
Best Answer
-
To get the "System" group, create beast mode that uses the SPLIT_PART function, like this:
TRIM(SPLIT_PART(fieldname,'|',1))
You can then use this field as your grouping and aggregation.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1
Answers
-
Can you show what you would want the end result to look like? Also, is this for a table card? Or some other visualization?
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
This is for a card and it will be a stacked bar graph. So we have groups we work with and the ticketing service does not have an option to input that. So we use the Title which we've developed a naming convention for so we can separate them out into 4 bits of info.
This is a random Google image since it won't let me upload my personal screenshot. I want to be able to take that one bit of information from the title and have any WO with the same first-word title and place it into the appropriate group. Hope this was enough info. Thank you!0 -
To get the "System" group, create beast mode that uses the SPLIT_PART function, like this:
TRIM(SPLIT_PART(fieldname,'|',1))
You can then use this field as your grouping and aggregation.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
That worked really well but it just looks all over the place. My next question is, is there a way to make custom groups once it's pulled from the split? So I can continuously make new groups myself. If I need to remake and create a new post for this please let me know and I will.
0 -
@Mirnes - I'm having difficulty understanding what you are asking. The solution that @MarkSnodgrass provided should give you a new field containing all of the first words from your original field of | separated values. Per the image provide, if you place that field as your series in the graph, it should provide you with the desired visual.
Or are you wanting to group together multiple values into a larger group?
Either way, I'm not a big fan of doing this kind of thing in a calculated field. Because this is something that is essentially looking at a single line of code and providing additional metadata to your dataset (it won't change based on card filters or date restrictions, etc.) I would recommend performing these calculations in a dataflow. In my opinion, this makes it easier to maintain these fields. It can also cut down on the rendering time for a page if you have a large dataset.
0 -
Sorry about the confusion, learning this on the go for work. I was mainly trying to be able to make a group via that first-word split but be able to customize the group names and limit what's displayed. So example I want 5 groups that I can pick the name for and 1 other group. This way I can continuously update it if we add any new groups or naming conventions where we pull that info from.
0
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
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 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