Skip to main content
Best Answer

connect features with transformer (StatisticCalculator)

  • April 23, 2020
  • 4 replies
  • 21 views

terezia86
Forum|alt.badge.img

Hi there,

 

is there any way how to automatic connect all features from AttributeFilter with (each) StatisticCalculator?

or maybe any other Idea?

I do not want to do it manualy, because the AttributeFilter has about 400 features.

 

Thanks

Best answer by ebygomm

You would be better using a single statistics calculator with a group by. Instead of an attributefilter, have an attributecreator that creates those filter groups to use in the stats calculator

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.

4 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • April 23, 2020

You would be better using a single statistics calculator with a group by. Instead of an attributefilter, have an attributecreator that creates those filter groups to use in the stats calculator


terezia86
Forum|alt.badge.img
  • Author
  • April 23, 2020

You would be better using a single statistics calculator with a group by. Instead of an attributefilter, have an attributecreator that creates those filter groups to use in the stats calculator

Hi, the thing is that I need to get a sum of each feature separate, that´s why I wanted to do it separately. Or is this possible to achieve it also other way?

Maybe I just do not understand how do you mean this. can you more explain what is here to do?

Thanks


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • April 23, 2020

Hi, the thing is that I need to get a sum of each feature separate, that´s why I wanted to do it separately. Or is this possible to achieve it also other way?

Maybe I just do not understand how do you mean this. can you more explain what is here to do?

Thanks

The Group By option in the StatisticsCalculator when set will only sum together features that are in the same group. So you will get a different total per group

A simple workspace example

stats_group_by.fmw


terezia86
Forum|alt.badge.img
  • Author
  • April 23, 2020

The Group By option in the StatisticsCalculator when set will only sum together features that are in the same group. So you will get a different total per group

A simple workspace example

stats_group_by.fmw

Amazing! It has worked perfect!

Thanks a lot, you saved me a lot of time!