MySQL using different timezone to workplace setting
I've just discovered that cards will use the workplace setting for a timezone, [e.g. AEST] whereas MySQL Dataflows will use GMT.
I'm trying to sum total sales by month, to then apply a monthly commission formula.
This sort of structure:
|Month | Sales | Commission|
|2017-09|10,000|3,000|
|2017-10|12,000|4,000|
Where Month = DATE_FORMAT(`completedAt_$date`,'%Y-%m')
and Sales = SUM(`Amount`)
I need to use MySQL rather than beastmode calculations in a card, because ultimately I'll need to sum it down to a single number and use that figure in other calculations.
What I've discovered is that if I view the data used by my card and SQL on an individual transaction level, it's identical [ID, Amount] apart from the 'Month' field, which will vary on the boundary between months where, say, the transaction in AEST is in Nov, but in GMT is Oct. This creates substantial disparities in my data!!!
I'm unsure if this is by design or a Domo bug ~ any suggestions on how to automatically have mySQL use the workplace timezone rather than GMT?
Comments
-
If the original data is all UTC, setting the time zone from the administrator screen will convert Domo when importing data.
https: // [your-instance] .domo.com / admin / companysettings
Time zoneHowever, this function can not be used if the original data is AEST or GMT.
In this case, you need to set the Time zone setting to UTC.
Then, in DataFlow SQL, convert like convert_tz (`date`, 'GMT', 'AEST').===
元のデータが全てUTCであるならば、管理者画面からタイムゾーンを設定すると、Domoがデータ取り込み時に変換してくれます。
https://[your-instance].domo.com/admin/companysettings
Time zoneしかし、元のデータが AEST や GMT の場合、この機能は利用できません。
この場合は、Time zone 設定をUTCにしておく必要があります。
そして、DataFlow SQLで、convert_tz(`date`, 'GMT', 'AEST') の様に変換します。0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive