Question
My report displays the week of the year, but I want to see the date that the week starts instead. How can I do that?
Answer
To change the way attributes appear, create a custom attribute:
- In report builder, click the Calculations icon (
) on the right sidebar - Click Standard calculated attribute, which opens the formula editor
-
Paste the custom attribute below into the formula editor
DATE_FORMAT(START_OF_WEEK_MONDAY([Ticket created - Date]),"YYYY-MM-dd") - Click Save
- Add the custom attribute to the report. Replace
START_OF_WEEK_MONDAYwithSTART_OF_WEEK_SUNDAYorSTART_OF_WEEK_SATURDAYwhichever you want your week to start in.
The calculations for the aggregator MED and AVG are skewed because they are calculated from the values for each day individually. This means seven data points each for a day in the week, rather than from the values across all tickets throughout the week.
Warning: If your Explore account is not in English, you may experience a syntax error when you copy and paste the sample formula. For a workaround, see How can I convert formulas from English into another language?