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.4K Product Ideas
- 1.4K Ideas Exchange
- 1.4K Connect
- 1.2K Connectors
- 284 Workbench
- 4 Cloud Amplifier
- 4 Federated
- 2.9K Transform
- 88 SQL DataFlows
- 555 Datasets
- 2.2K Magic ETL
- 3.3K Visualize
- 2.3K Charting
- 566 Beast Mode
- 9 App Studio
- 27 Variables
- 577 Automate
- 140 Apps
- 414 APIs & Domo Developer
- 22 Workflows
- 1 DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 350 Distribute
- 90 Domo Everywhere
- 258 Scheduled Reports
- 2 Software Integrations
- 91 Manage
- 88 Governance & Security
- 9 Product Release Questions
- Community Forums
- 42 Getting Started
- 28 Community Member Introductions
- 85 Community Announcements
- 4.8K Archive