I need help troubleshooting the sort order of...

I need help troubleshooting the sort order of a grouped table view.

My app has a parent table (Events), and a child table (Attendees).

My desired view - All child records would be grouped by the parent record, then all those groups are sorted by the [DateTime] column in my Events table.

Right now, I can create a table view using my attendees table, grouped by the referenced event, which is great.

But it always shows up in alphabetical order, which doesnโ€™t make sense.

They need to happen in DateTime order.

Is there a way, while using the child table view, to force the Groups of attendees for each event to be sorted by the time the event occurs?

0 11 1,469
  • UX
11 REPLIES 11

I would take view on the events sorted by date. Then the detail of the event show basically only the REFROWS children show 200 entries, and Bam. I do it all the timeโ€ฆ

@Grant_Stead I agree, however, I donโ€™t want to have to click to see the information in the child rows.

I want to quickly scan one view, containing the name of the event plus the people attending all in one place.

Is that possible?

When I trigger a table view from the events table, and add the de-ref column for attendeeโ€™s, it just returns a count of attendees for that event, instead of individual names.

In detail view, I can only view 1 event at a time.

Iโ€™m trying to come up with a work around.

Can you turn a list output into text?

For instance, use a virtual column with a formula that retrieves the list of rows from the attendee table that have the same EventID as the current row.

Then in a second virtual column, could you convert that to text that then could be read from the primary table view?

Looks great now, thanks @Aleksi_Alkio, @Suvrutt_Gurjar, and @Grant_Stead! So happy to have it working and not have to start from scratch.

I wish there was an expression builder allowed for sorting on table views for groups, or some way to assign order of operations.

Group then sort, or sort then group.

I would be done already! lol

What if you have a column in your attendees for parent dateโ€ฆ Drefโ€ฆ Then group by event, sort by

event dateโ€ฆ

@Jennifer_Clem1 also, admittedly, appsheets group and sort is not very robustโ€ฆ

@Grant_Stead Same Result, it is attempting to sort the child rows underneath each parent (group) instead of the group as a whole.

Returns a nice alphabetical list.

Any other ideas?

Iโ€™m stumped at this point.

Iโ€™ve spent a few hours just trying to figure this one piece out to make the app live.

Now I think Iโ€™m going to have to rework the whole app to utilize other view types, and it wont function nearly like i want it to.

Hi @Jennifer_Clem1,Based on my understanding of your need, you wish to group the attendees by event and the events need to display by the eventsโ€™ date /time in the same view.

I request you to explore below

  1. I presume you are using Event ID to reference the event name in child table Attendees

Please pull in Event date time column and Event name from the parent Event table into Attendees table. ([Event ID].[Event Datetime] and [Event ID].[Event Name]

  1. Please create a concatenated column {Event Date & Name] in Attendees table. I created it as a virtual column in test app. Please put [Event Date] first in concatenation.

  2. In the table view of Attendees table, please put the group by column as this newly created concatenated column {Event Date & Name].

Please put ascending/descending order as you desire.

The view displays the events in either descending or ascending datetime order as per your setting with attendees listed in each group.

I tested the above works with event date value,but I believe its should work well with event datetime value as well.

Hope this is what you are looking for and helps.

@Suvrutt_Gurjar Hmm, sounds promising. I will give it a try and let you know. I like it in theory.

Approach of @Suvrutt_Gurjar is a good one. When you concatenate the group name, you should create a format 2018-06-22. Otherwise the ascending and descending will give you wrong result. This is happening because the concatenate will convert the date as a text string.

Hi @Aleksi_Alkio,thank you for your guidance on the date format. As always, your input is vital for correct, efficient solution.

Top Labels in this Space