Row Combine
Hi everyone,
I've asked a similar question before, but I'm struggling to understand how to best combine multiple rows into 1 while still combining the data from the existing columns using a ,. I have a list of students who are enrolled in a course and they share an OrgUnitIDand then have different times when they have logged in and completed assignments.
How do I combine these students who share an OrgUnitID into one row using Magic ETL? I've looked all over the resources I can find and it seems that there have been different ways to do this in the last few years.
So far I've tried to use the Group By tile, but I don't want to create new columns and from what I understand the group_concant function is no longer an option.
Here is an example of what I'm trying to accomplish.
I would like to combine all of the rows in the screenshot into one and then only display the most recent time for DP_DatePosted and all of the columns to the right of it.
Any help with the steps I could take to accomplish this would be greatly appreciated!
Answers
-
How are you wanting QA_TimeStarted and QA_TimeCompleted and CA_DateAccess handled? Most recent time? Drop them?
It sounds like you just want to us a Group By tile on the UE_OrgUnitID, OU_MasterCourses_CourseName, OU_CounselsA fields and take the MAX of the DP_DatePosted field.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
@GrantSmith Thank you for always being on the ball with questions!
Yes, I want the most recent times for QA_TimeStarted QA_TimeCompleted and CA_DateAccess.
So would I add all of the columns I want to bring in or just these 3?
Also, how would the second part for the new aggregated column look? I wasn't trying to create a new column so this part confuses me.
0 -
@EWold - You don't need to include UE_OrgUnitID in the second part of the ETL tile.
You only want to aggregate the three time values that you listed earlier.
QA_TimeStarted -> Maximum
QA_TimeCompleted -> Maximum
CA_DateAccess -> Maximum
This will take your data and provide you with a single row of data for each unique grouping of
- UE_OrgUnitID
- OU_MasterCourses_CourseName
- OU_CourseIsActive
Each row will contain the most recent value for each of the times listed above.
2 -
Thank you, everyone! I now understand how the Group By tile works and was able to get my report completed.
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