How to change/reroute specific values in a field and leave all others the same
I have a table card. It shows the amount of deals closed by each sales team. In some cases, sales reps change industry teams. I want to be able to say "If sales manager = Joe Smith, then change team to Retail" but since there are 100 managers, I don't want to go thru and put each one in since the rest of the mappings should remain unchaged... this is what I have so far but I'm getting a syntax error. Can anyone spot what I'm missing here?
CASE
WHEN `Sales Rep Supervisor` = 'John Smith' then `Sales Team` = 'Retail'
ELSE `Sales Team` END
Best Answer
-
Drop the `Sales Team` =
CASE
WHEN `Sales Rep Supervisor` = 'John Smith' then 'Retail'
ELSE `Sales Team` END0
Answers
-
Drop the `Sales Team` =
CASE
WHEN `Sales Rep Supervisor` = 'John Smith' then 'Retail'
ELSE `Sales Team` END0 -
I tried it, but then I lose the manager's name. I need Sales Manager to remain the person's name. The team describes what industry they sell to. So I still need 2 separate fields. I just want to reroute John Smith's reps to Retail instead of Advertising.
so the current columns say
Sales Manager: John Smith
Sales Team: Advertising
I need it to say
Sales Manager: John Smith
Sales Team: Retail
but all other managers should keep their current sales teams
0 -
I'm a bit unclear on how you're using the fields. Is this a table chart type?
The BeastMode I provided will replace the Sales Team field, you should still be using the same Sales Manager field.
Any chance you could take a screenshot of how you have the fields setup in your card?
0 -
Ahh I see what you're saying. It looks likethat worked. Thank you!!
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
- 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