Help with extraction: Data extraction previous month

Hi!
New to the KNIME community.

I am trying to extract data from the previous month so I can limit the size of the output and give an update on the month performance. It seems quite easy for my understanding but I can’t figure it out unfortunately. Could someone help me maybe?
Date= yyyy-mm-dd

I only got to use day of today, but that should be between start month <> end month

Thanks!

Welcome to the KNIME community.
A few questions:

  1. Is your data cumulative and dynamic, i.e. constantly updated?
  2. Does your data cross years?
  3. If you want the previous month’s data why do you have a node which backs up
    2 months?

    It would be helpful if you could share a sample data set, anonymized if necessary.

Hi Rfeigel,

The data is dynamic, so each month the scan data is added to the folder, which will be read by Knime.
2. for the time being this is only 2024 yet but will effect also the following years.
3. Typo mistake and took it over from a previous discussion from knime.

I have currently 919270 rows, which I hope to limit in a monthly data range.

I thought that the sample data set would help from this article on knime.

I think @bruno29a’s workflow can be modified to work for you. It would be very helpful if you would share your data since it has current dates.

Try this. I did this without knowing exactly how your table is formatted.
1 Month Prior Date Filter.knwf (112.2 KB)

1 Like

Hi @rfeigel,

Thanks for the workflow, it works perfectly!

Kind regards

Quintin

Hi @rfeigel,

Question related to the topic. Let’s say we will only use previous month when data is available, otherwise keep using the month before? I see that now in December, it requires the data of November, which is not available yet (delay). How could I change the rule which will give the latest available data? I think now it will add both months when available?

Here’s a quick and dirty solution. It does require human intervention. If the previous month’s data is not available, it backs up two months. Writes an output file to the data area of the workflow.
1 Month Prior Date Filter rev 1.knwf (134.2 KB)

1 Like

Did my last workflow work for you?

Hi rfeigel,

I did test it, but the manual step does not work for me. I am now checking whether IF option or Case would work for me.

If you haven’t solved the problem try this. It has two test data sets. One with previous month and one back two months. If you solved another way, please post to help the community.