Mega Table Row Grouping and Ordering
Hello Gurus -
I'm trying to achieve something like this orgnization of data coming from Excel:
But from the data set I get this where the Teams are filterable, but I can't see a way to consolidate all of January nor how to get column Anniversary month to sort chronologically.
Thannks for any ideas tio get me in the right direction.
Best Answers
-
In Analyzer, for each of the amount fields, did you select an aggregation type? If not, then choose Sum and it will sum it by team and month, which looks like what you are trying to do.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
As Mark says…you need an aggregate (COUNT, SUM) on the amount field. Place the month field and the amount field next to it. To order the months in chronological order, you can create a calculated field using Month({your date}). That will give you 1 for Jan, 2 for Feb, etc. Place that in the sort and the data will line up in order.
If you need to sum up something that doesn't match the grouping…you can use CASE. Such as CASE WHEN {your criteria} THEN {amount} ELSE 0 END.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Answers
-
In Analyzer, for each of the amount fields, did you select an aggregation type? If not, then choose Sum and it will sum it by team and month, which looks like what you are trying to do.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
As Mark says…you need an aggregate (COUNT, SUM) on the amount field. Place the month field and the amount field next to it. To order the months in chronological order, you can create a calculated field using Month({your date}). That will give you 1 for Jan, 2 for Feb, etc. Place that in the sort and the data will line up in order.
If you need to sum up something that doesn't match the grouping…you can use CASE. Such as CASE WHEN {your criteria} THEN {amount} ELSE 0 END.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
Thanks guys. Your ideas sparked n idea for me to try.
The Team Name is a result of a Beast Mode CASE WHEN CSM Name = x then Team Tara, ELSE Team Asad. So I wasnt sure how much I could use the output of that to manipulate in order to merge the rows.What I ended up doing is:
CASE
WHEN MONTHNAME(Anniversary Date
) = 'January' THEN '1 - January'
WHEN MONTHNAME(Anniversary Date
) = 'February' THEN '2 - February'
WHEN MONTHNAME(Anniversary Date
) = 'March' THEN '3 - March'
WHEN MONTHNAME(Anniversary Date
) = 'April' THEN '4 - April'
WHEN MONTHNAME(Anniversary Date
) = 'May' THEN '5 - May'
WHEN MONTHNAME(Anniversary Date
) = 'June' THEN '6 - June'
WHEN MONTHNAME(Anniversary Date
) = 'July' THEN '7 - July'
WHEN MONTHNAME(Anniversary Date
) = 'August' THEN '8 - August'
WHEN MONTHNAME(Anniversary Date
) = 'September' THEN '9 - September'
WHEN MONTHNAME(Anniversary Date
) = 'October' THEN '10 - October'
WHEN MONTHNAME(Anniversary Date
) = 'November' THEN '11 - November'
WHEN MONTHNAME(Anniversary Date
) = 'December' THEN '12 - December'
ELSE 0
ENDThat gave me this, which I can Quick Filter for a specific team or month etc.:
0 -
One way to simplify your beast mode case statement is to instead utilize the FORMAT_DATE function:
DATE_FORMAT(dt, '%m - %M')
This will instead format your numbers as 2-character strings so they sort properly in your list and makes it a bit easier to read.
04 - April
Here's al ink to some documentation about the format strings you can use in the DATE_FORMAT function:
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive