How do I avoid decimals from being truncated while bringing data from Excel?

I have an Excel that has several measures that are percentages. The Excel is in a Box folder, so I am using the Box connector to bring the data to a Domo dataset. Everything works fine, except that the percentages get converted to decimal numbers (so, all are <1) and truncated to 2 decimals... so that is causing me issues when I use the SUM option for those percentages in my visualizations.
How do I fix it? Thanks!
Best Answer
-
The values are still there. They have just been imported as type DOUBLE. Depending on what you are wanting to do with the data, you can either convert it in MySQL using something like this:
SELECT convert (`General`, decimal(9,7)) as `General` from dojo_help_2
You can use an ETL by usint the "Set Column Type" action and changing the data type to Decimal(Fixed)
You can just change the chart options to display it as a number with x decimals:
0
Answers
-
The values are still there. They have just been imported as type DOUBLE. Depending on what you are wanting to do with the data, you can either convert it in MySQL using something like this:
SELECT convert (`General`, decimal(9,7)) as `General` from dojo_help_2
You can use an ETL by usint the "Set Column Type" action and changing the data type to Decimal(Fixed)
You can just change the chart options to display it as a number with x decimals:
0 -
Thank you @ST_Superman! All these years later your post helped me out with this exact issue!
If I solved your problem, please select "yes" above
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 310 Workbench
- 7 Cloud Amplifier
- 9 Federated
- 3K Transform
- 113 SQL DataFlows
- 653 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 795 Beast Mode
- 78 App Studio
- 44 Variables
- 757 Automate
- 188 Apps
- 480 APIs & Domo Developer
- 72 Workflows
- 17 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 408 Distribute
- 119 Domo Everywhere
- 279 Scheduled Reports
- 10 Software Integrations
- 141 Manage
- 137 Governance & Security
- 8 Domo Community Gallery
- 47 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive