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.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.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 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