Devin Posted April 18, 2016 Share Posted April 18, 2016 I'm needing to create chart that display a breakout of orders by week for the last n weeks. I'm able to get the chart chart I needed by having a field called week that a calculation = WeekOfYear ( CreateDate ). But I don't like week number for display. Would prefer either a Date like "4/17/2016" or "4/17/2016 thru 4/23/26" Any tips would greatly help. Thanks Link to comment Share on other sites More sharing options...
comment Posted April 18, 2016 Share Posted April 18, 2016 It's not a good idea to use the week-of-year alone anyway, because it will not sort correctly at the year boundary. Try instead: CreateDate - DayOfWeek ( CreateDate ) + 1 and set the result type to Date. This returns the date of the starting Sunday of the week. In order to have the chart show both week's boundaries, set the chart's horizontal axis labels to a calculation of = YourTable::cWeek & " thru " & YourTable::cWeek + 6 where cWeek is the calculation field above. Link to comment Share on other sites More sharing options...
Devin Posted April 19, 2016 Author Share Posted April 19, 2016 6 hours ago, comment said: Perfect once again Comment.. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 2901 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now