Skip to main content
Question

Creating a 'report' from data from a SQL db which shows a count of data collected on a weekly basis. The week starts on a Wednesday.

  • May 20, 2021
  • 1 reply
  • 9 views

I have a sql table with a date field.

it shows Lab Code (MINA / Intertek), sample ID, Lab_report_date

I want to show this data as a table or export such as:

Capture 

The week is not calculated as a standard 'week', but from Wed - tuesday.

I've been playing around with DateTimeCalculator & Attribute Pivoter without much luck.

Is this even possible?

 

thanks

1 reply

Forum|alt.badge.img+2
  • 1891 replies
  • May 20, 2021

@tdunlevie​ can you use DateTimeConverter convert the date to a day of the week (%u) - you'll need the year in the date - and then use a lookup (AttributeValueMapper) to move the Monday based (1-7) to a Wednesday based (1-7) and go from there?