Skip to Content
author's profile photo Former Member
Former Member

Grouping by Date Field Weekly Always starts on a Sunday, Can I change this

Post Author: mikazza

CA Forum: General

Hi,

I have a report which groups sales by the date they were made dailly, it also has another group which sits above this and groups these same sales by week so I can get a weekly sales figure aswell. All this works ok but the weekly bit always starts on a Sunday, is there any way to change this to start on a Monday instead?

Many thanks in advance

Michael

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 26, 2007 at 03:18 PM

    Post Author: mikazza

    CA Forum: General

    It's okay,

    Found the answer....

    I created a group on a formula: datepart("ww",{TRANSACTION.TRANSACTION_DATE},crMonday)

    and when creating this group I clicked customise group name field and entered this formula:

    totext({TRANSACTION.TRANSACTION_DATE}-dayofweek({TRANSACTION.TRANSACTION_DATE},crMonday)+1, "dd/MM/yyyy")

    This basically sets the start date of the week to Monday, change crMonday to whatever day you want to start from then.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2007 at 12:43 AM

    Post Author: SKodidine

    CA Forum: General

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.