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
  • 5 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

@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?


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