How do I translate this Tableau code to Domo?
Hi,
So I need to translate code from Tableau to Domo and since I am very new to Domo, I will need your help to translate this Tableau code that looks like this:
- { FIXED [Employee ID],[Area Code],[Supervisor Code],[Day of Date]:
IF SUM([Commission A])>SUM([New Base Salary Current]) AND SUM([Commission A])<SUM([Second Base Salary Current ) THEN SUM([First Achievement])+SUM([Original Premium])*SUM([Commission A]-[New Base Salary Current])
ELSEIF SUM([Commission A])>SUM([Second Base Salary Current )AND SUM([Commission A])<SUM([Third Plan Base Salary]) THEN SUM([New First Achievement])+SUM([Second Achievement])+SUM([Original Premium])*SUM([Commission A]-[New Base Salary Current])
ELSEIF SUM([Commission A])>SUM([Third Plan Base Salary]) THEN SUM([First Achievement])+SUM([Second Achievement])+SUM([Third Achievement])+SUM([Original Premium])*SUM([Commission A]-[New Base Salary Current])
ELSE 0
END
}
I've tried this:
- { FIXED [Employee ID],[Area Code],[Supervisor Code],[Day of Date]:
CASE WHEN SUM`[Commission A]`>SUM`[New Base Salary Current]` AND SUM`[Commission A]`<SUM`[Second Base Salary Current ` THEN SUM`[First Achievement]`+SUM`[Original Premium]`*SUM`[Commission A]-[New Base Salary Current]`
CASE WHEN SUM`[Commission A]`>SUM`[Second Base Salary Current `AND SUM`[Commission A]`<SUM`[Third Plan Base Salary]` THEN SUM`[New First Achievement]`+SUM`[Second Achievement]`+SUM`[Original Premium]`*SUM`[Commission A]-[New Base Salary Current]`
CASEWHEN SUM`[Commission A]`>SUM`[Third Plan Base Salary]` THEN SUM`[First Achievement]`+SUM`[Second Achievement]`+SUM`[Third Achievement]`+SUM`[Original Premium]`*SUM`[Commission A]-[New Base Salary Current]`
ELSE 0
END
}
But apparently it didn't work and I don't know how to translate the Fixed syntax to Domo.
Anyone can help? I'd really appreciate it. Thanks a lot!
0
Welcome!
It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign InComments
-
You might want to try something like this instead
- CASE
WHEN `Commission A ` > `New Base Salary Current`
AND `Commission A` < `Second Base Salary Current`
THEN (`First Achievement` + `Original Premium`) * (`Commission A - `New Base Salary Current`)
WHEN `Commission A` > `Second Base Salary Current`
AND `Commission A` < `Third Plan Base Salary`
THEN (`New First Achievement`+`Second Achievement`+`Original Premium`) * (`Commission A - `New Base Salary Current`)
WHEN `Commission A` > `Third Plan Base Salary`
THEN (`First Achievement`+`Second Achievement`+`Third Achievement`+`Original Premium`) * (`Commission A - `New Base Salary Current`)
ELSE 0
END
Domo Arigato!
**Say 'Thanks' by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as 'Accepted Solution'1 - CASE
-
I'm not sure of what type of vizualization you are trying to get but if it was a table card for example, the fixed function should not be a problem since you would be adding columns (Fixed fields) and the last would contain your beastmode that will automatically calculate and do the cuts depending on your columns (Grouping) selection. somehing like this
Employee ID Area Code Supervisor Code Day of Date Beastmode 55 789 1 2 x 22 987 3 2 y 13 456 5 2 z 55 789 1 3 z 22 987 3 3 x 13 456 5 3 y Domo Arigato!
**Say 'Thanks' by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as 'Accepted Solution'0
Welcome!
It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign InWelcome!
It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign InCategories
- 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
- 41 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 2 AI Projects and Models
- 18 Jupyter Workspaces
- 411 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 11 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
- 115 Community Announcements
- 4.8K Archive