"OVER" function not there in SQL Dataflows - Running totals calculations
I am not able to perform "window" functions (specifically "over" function ) in a SQL Dataflow that I have created. Also - there were no dropdowns that suggest "OVER" exists as a function within Domo for SQL dataflows.
It is related to "Partition" and is used in Running Totals. Partition is there, but there is no "OVER" function available. I keep getting a syntax error in my dataflow because of this - I have tested out SQLFiddle and in other platforms where it works properly.
Very important function for calculating running totals as described here
SQL Fiddle - http://sqlfiddle.com/#!15/c9e0d/5
This is urgent and needs to be fixed asap
Comments
-
Hi there!
MySQL does not support OVER() along with other window functions.
Redshift however, does support these. If you don't currently have access to Redshift dataflows, please contact Domo Support to have those turned on inside your Domo instance.
This link may be helpful in emulating some windowed functionalities in mySQL: https://explainextended.com/2009/03/10/analytic-functions-first_value-last_value-lead-lag/
Hope this is helpful.
**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 -
Domo has a couple of SQL platforms. Are you using mySQL?
We are on the other one, the RedShift platform, and use window functions pretty frequently. For example, one of our revenue to goal calculations looks like:
SELECT
...
SUM(r.amount_usd) OVER (PARTITION BY r.type, r.salesrep_id, r.driver_category, DATE_TRUNC('yr',r.trx_month)) AS amount_yr_usd
FROM
...
You can have Domo turn on Redshift in your instance if you like. I think you just have to contact your account or success manager.
Let me know if you have other questions.
Aaron
MajorDomo @ Merit Medical
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"1 -
Announced at domopalooza ‘18 is the support for window functions in beast mode. Sum(sum(x)) over () etc
0
Categories
- 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