Skip to main content
Solved

Validate previous date in excel file


mr_fme
Enthusiast
Forum|alt.badge.img+9

Hi all,

 

I have an excel file with several lines. I have a data field and countries, I need to validate which countries have less than 1 line with data between the last 7 days or the week before, How could I do that?

Thank you

Best answer by hollyatsafe

Hi @mr_fme,

I think the simplest way to do this would be to

  1. Use the DateTimeCalculator to create an attribute that stores the date 7 days ago
  2. Use a Tester to see if the date recorded for each country is greater than or equal to that date. This should work nicely as the Tester has a Comparison Mode for Date/Time.

Any features that pass the tester, fall within the last 7 days. Please find attached a workspace to demonstrate my idea.

datetest.fmw

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

2 replies

Forum|alt.badge.img+2
  • Best Answer
  • May 26, 2020

Hi @mr_fme,

I think the simplest way to do this would be to

  1. Use the DateTimeCalculator to create an attribute that stores the date 7 days ago
  2. Use a Tester to see if the date recorded for each country is greater than or equal to that date. This should work nicely as the Tester has a Comparison Mode for Date/Time.

Any features that pass the tester, fall within the last 7 days. Please find attached a workspace to demonstrate my idea.

datetest.fmw


mr_fme
Enthusiast
Forum|alt.badge.img+9
  • Author
  • Enthusiast
  • May 26, 2020
hollyatsafe wrote:

Hi @mr_fme,

I think the simplest way to do this would be to

  1. Use the DateTimeCalculator to create an attribute that stores the date 7 days ago
  2. Use a Tester to see if the date recorded for each country is greater than or equal to that date. This should work nicely as the Tester has a Comparison Mode for Date/Time.

Any features that pass the tester, fall within the last 7 days. Please find attached a workspace to demonstrate my idea.

datetest.fmw

I´m glad!

Thank´s @hollyatsafe


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