WOY(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
WOY(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Date Transform: WOY(A)
Returns Week of Year for Date A, as an integer between 1 and 52
Purpose
Use this function to:
- Group transactions into week of year segments
- Segment events by week
- Group multi-year data into consistent weekly segments for year on year comparison
Return Value
Property | Value |
---|---|
FieldType | Integer |
FieldSize | Low |
DataType | Discrete |
DataSize | Short |
Example Return Value: 1...52
Parameters
Parameter | JSON | Description |
---|---|---|
Table | “targetTable”: “MyTableName” | The target table on which the new field will be created |
Filter | “dataset”: {DataSet_JSON} | Optional. If a filter is applied, records not in the filter Recordset will be returned as null. |
Date Function | “p1”: “WOY(A)” | WOY(A) |
A | “p2”: “DateTimeFieldName” “p2”: “DateFieldName” “p2”: “#YYYY-MM-DD HH:MM:SS” “p2”: “#YYYY-MM-DD” | Required. The date from which to extract the week of year Supports:
|
JSON Sample
Usage Notes
See Also:
- DOY(A) - Day of year
- SWEEKDAY(A) - Weekday as string
- YEARWOY(A) - Year week of year
- DATEFROM(A,B,C) - Date from integer parts
Example
Example | Details |
---|---|
Description | Group transactions into weekly segments |
Input |
|
Sample |
Was this article helpful?