Grand Total shows incorrect aggregation
In the above image, third column is the beast mode which is count(distinct emailname) aggregation. I am getting correct number of unique email counts in row-wise but when it is aggregated for 'Grand Total' it showing different number. I don't why I am getting 1,781,128 counts instead of original total 1,876,229 counts .
Comments
-
Just out of curiousity, do you have any null values in your data (either as used in your card definition or drill path). Not just blank, but actually Null.
0 -
Is it possible that a single email name could be found in multiple categories? When you are using a total row with an aggregate field, the total row simply applies that aggregation to the entire data set. i.e. if your aggregation was MAX(`Revenue`) then the total row would only give you the max value for your entire data set, not the sum of row in the table.
My hypothesis would be that you have duplicate `emailname` in your data set.
0 -
Yes , we do have duplicate email address. That's why we go Unique function but when we want to know the 'Grand total' of all unique values in multiple categories.
In domo , how to do sum aggregation for unique values so that we know , sum of unique values in the entire dataset in multiple categories
0 -
Do you use a beastmode to obtain the distinct items? If so I believe the context of application for the Distinct logic is specific to the card that employs the beastmode and not the drill path. Just a possibility to review/confirm.0
-
Try something like this:
COUNT(DISTINCT CONCAT(`Field 1`,`email_name`))
I can't tell what your field names are, but that should give you the total that you want in the grand total row.
2
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
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 813 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive