Jump to content

WeekOfYear Better way to display?


This topic is 2901 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.