Skip to main content
Released

Add Group By to Counter to make easy multi-attribute counts

Related products:FME Form
  • February 13, 2016
  • 12 replies
  • 260 views

taojunabc
Participant
Forum|alt.badge.img+6

In the counter, you can set the "Counter Name" to a attribute value, but can not set up multiple attribute values, if can be allowed to do so, will be more convenient to generate the "Group ID" such values.

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.

12 replies

takashi
Celebrity
  • February 13, 2016

Hi @taojunabc, you can set multiple attribute values to the Counter Name parameter as a concatenated string using the Text Editor. Doesn't it satisfy your requirement?

'


taojunabc
Participant
Forum|alt.badge.img+6
  • Author
  • Participant
  • February 13, 2016

Oh, I don't know this feature. It's perfect.

Thank You !


fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • February 14, 2016

We should make this easy to find -- Group By would be the logical way to accomplish this. We have a plan to make a change, but in the meantime (and forever) the plan @takashi suggests will work.


taojunabc
Participant
Forum|alt.badge.img+6
  • Author
  • Participant
  • February 14, 2016

Thanks for your comment.I'm looking forward to Group By.

I think that only through "Counter Name" parameter to realize the functions of identification and Group By,it can cause some confusion to the user.I think that in addition to the "Counter Name" parameters, add a "Group By" parameter may be better,Such Counter Name can be used as the identification of different Counter, and Group By can be used to determine whether you need to Group according to the attribute(s).

I have another idea, if can add a drop-down list to "Counter Name",When click it automatic display other Counter's "Counter Name" list. can be more convenient to relate the Counter to other Counter.


Forum|alt.badge.img+6

OMG @takashi this saved my day! I needed to count by group and was amazed it couldn't be done. Well, now I know it can but it's not discoverable. @daleatsafe adding "Group By" would be more intuitive and follows the same patterns we're used to in FME.


omg I wondered why there wasn't a group by - I never noticed the attribute option on the side! Only been using FME for 10 years!

Saying that - a Group By input box with the Text Editor option and the Counter Name separate that would be more consistent with other transformers.


ronnie.utter
Contributor
Forum|alt.badge.img+11
  • Contributor
  • May 30, 2020

Thank you @Takashi. This suggestion works perect. I also struggled with Count by Group and this solves my problem.


anamanvil
Forum|alt.badge.img
  • November 30, 2020

Thanks @Takashi. I was looking into this issue and your approach worked perfectly!


alexlynch3450
Contributor
Forum|alt.badge.img+16
  • Contributor
  • December 1, 2020

Thanks @Takashi. I traditionally used 'cumulative' pipe from StatisticCalculator transformer as workaround for being unable to groupby using Counter transformer. Using counter name to group like features is much straightforward approach!


Forum|alt.badge.img
  • March 6, 2023

Hello, I still can't use the group by with the transform Counter. I read the different answers but I still can't do it... Do you have any examples of use? Thanks a lot !


philippeb
Enthusiast
Forum|alt.badge.img+22
  • Enthusiast
  • March 6, 2023

Give us more details about your data.


LizAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • March 6, 2023

@dozhwal​ The screenshot above is from a much older version of FME. In newer versions, change the Count Scope to Local, then Group Processing should be enabled. From there, set the Group By parameter to the desired attribute you would like to group by. The below screenshot is from 2021.2. CounterGroupBy