ERROR: This calculation uses both aggregated and non-aggregated columns.


I have been using beast mode fields that used window functions and which validated and worked fine in my charts for years now.
However, today when I tried to add a new beast mode I am getting the following error
"This calculation uses both aggregated and non-aggregated columns. This may result in duplicate rows and unexpected behavior in charts. See this article for more information"
I read the article and it doesnt have any examples. Anyone has any idea on what changed?
Here is the example window function calculation that gives the above error.
SUM(SUM(CASE WHEN (Product Type
= 'Custom') THEN ((QTY
* Custom Price
)) ELSE ((QTY
* Regular Price
))) END)) over (partition by Order Month
)
Even a non-window aggregate function like the one below gives the same error.
CASE WHEN (Product Type
= 'Custom') THEN (SUM(QTY
* Custom Price
)) ELSE (SUM(QTY
* Regular Price
)) END
Thanks in Advance
Best Answer
-
Update:
False Alarm!!!
This looks like a "warning" rather than a error. It still allows to create/save the beast mode calculation and works fine in the report.
Sincere apologies for the trouble.
0
Answers
-
Update:
False Alarm!!!
This looks like a "warning" rather than a error. It still allows to create/save the beast mode calculation and works fine in the report.
Sincere apologies for the trouble.
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 664 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 824 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 194 Apps
- 486 APIs & Domo Developer
- 90 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive