Concat percent sign (%) after a beast mode calculation. Syntax Error
Hi,
I created a BeastMode calculation to create a basic percentage value. However, when I try to enter the formula into a concat it give me syntax error.
Works:
count (`Have License`) / count (`Total Users`) * 100
Does Not Work
Concat ( count (`Have License`) / count (`Total Users`) * 100), `%`)
Best Answer
-
Give this a shot:
CONCAT( count(`Have License`) / count(`Total Users`) * 100, '%')
Might've been the % was enclosed in ` instead of '
2
Answers
-
Looks like you need to add a ( before your formula.
Try this
Concat ( (count (`Have License`) / count (`Total Users`) * 100), `%`)
1 -
Oh, that was just a typo. Sorry. The formula works, I just cannot get the "%" to concat to that formula
0 -
Give this a shot:
CONCAT( count(`Have License`) / count(`Total Users`) * 100, '%')
Might've been the % was enclosed in ` instead of '
2 -
You were right! Thank you so much. Worked like a charm. I will have to look up when to use backquote vs regular single quote
0 -
You'll want to use the tilda (`) anytime you're encapsulating a columnname present in your dataset. You'll use the single quote (') when you are enclosing a string. In your case, you're adding a string '%' to the end of your calculation.
Hope that helps
1
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 603 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 697 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 388 Distribute
- 111 Domo Everywhere
- 271 Scheduled Reports
- 6 Software Integrations
- 113 Manage
- 110 Governance & Security
- 9 Domo University
- 30 Product Releases
- Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive