I have a flow as pictured below. I have only three collumns in my StatisticsCalculator. I have year, month, amount. What I want is to create a sum(amount) per year, month. When I run this flow it generates way to mcuh data. I was expecting 12 rows pre year but there is way more and the data is duplicate, giving 28 rows per month. What am I doing wrong?
Best answer by redgeographics
When I run a sql query at the table this is what the result look like
I truncate the table before I run the flow in FME to ensure I do not have any wrong data begfore start.
The screenshot shows only 12 features being written. Can you doublecheck the table handling parameters (is it maybe inserting rather than updating so that there's still old data in there?)
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.
If you group the StatisticsCalculator by year and month it will output one summary feature per unique combination of those two attributes, so if you have a full year's worth of data you can indeed expect to see 12 output features.
Â
You mention you get 28 rows per month, but I don't see that in the feature counts to be honest. Where are you seeing those?
If you group the StatisticsCalculator by year and month it will output one summary feature per unique combination of those two attributes, so if you have a full year's worth of data you can indeed expect to see 12 output features.
Â
You mention you get 28 rows per month, but I don't see that in the feature counts to be honest. Where are you seeing those?
When I run a sql query at the table this is what the result look like
I truncate the table before I run the flow in FME to ensure I do not have any wrong data begfore start.
When I run a sql query at the table this is what the result look like
I truncate the table before I run the flow in FME to ensure I do not have any wrong data begfore start.
The screenshot shows only 12 features being written. Can you doublecheck the table handling parameters (is it maybe inserting rather than updating so that there's still old data in there?)