Skip to main content
Question

Aggregate Attributes by date and by Run

  • October 19, 2016
  • 6 replies
  • 94 views

Forum|alt.badge.img

Hello All,

I want to aggregate attributes (Clientid) by Run and by date. Please see the attached spreadsheet

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

redgeographics
VIP
Forum|alt.badge.img+63

If you set up an Aggregator and have it group by Bookingdate and Run, then create a list you should be able to get what you're after.

You can then use a ListConcatenator to create a new attribute with all the ClientID's per unique combo of Bookingdate and Run. I've attached a template with a workspace that shows this.

Hope this helps.

aggregation.fmwt


takashi
Celebrity
  • October 20, 2016

If you set up an Aggregator and have it group by Bookingdate and Run, then create a list you should be able to get what you're after.

You can then use a ListConcatenator to create a new attribute with all the ClientID's per unique combo of Bookingdate and Run. I've attached a template with a workspace that shows this.

Hope this helps.

aggregation.fmwt

Another option. If the goal is to concatenate Client IDs for each group of date+run, the "Attributes to Concatenate" parameter might also be helpful.

 


Forum|alt.badge.img
  • Author
  • October 20, 2016

If you set up an Aggregator and have it group by Bookingdate and Run, then create a list you should be able to get what you're after.

You can then use a ListConcatenator to create a new attribute with all the ClientID's per unique combo of Bookingdate and Run. I've attached a template with a workspace that shows this.

Hope this helps.

aggregation.fmwt

Hello,

 

 

Thank you for the reply. I want to count distict booking ID with run. The FME shows the list of client id. But it will be great if I get sum of client id and distict count of booking ID by the run. Thank you again.

 

 


itay
Supporter
Forum|alt.badge.img+19
  • Supporter
  • October 20, 2016

Hi,have a look at the count attribute for a distinct count and the attributes to sum option.


Forum|alt.badge.img
  • Author
  • October 20, 2016

Hi,have a look at the count attribute for a distinct count and the attributes to sum option.

Sorry, I didn't get you. What do you mean to look at count attribute?

 

 


itay
Supporter
Forum|alt.badge.img+19
  • Supporter
  • October 20, 2016

Hi,have a look at the count attribute for a distinct count and the attributes to sum option.

 

In the aggregator there is a setting (Count Attribute) to preform a distinct count per group defined by the attributes in the group by setting.