Skip to main content
Solved

connect features with transformer (StatisticCalculator)


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

View original
Did this help you find an answer to your question?

4 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • 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
ebygomm wrote:

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+39
  • Influencer
  • April 23, 2020
terezia86 wrote:

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
ebygomm wrote:

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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings