Sorting by week of Order Date

ramsay18477ramsay18477 Member Posts: 52
Hi All,

I've made a report to display open orders from the Sales Header table sorted by Order Date.

But, I want to sort and do the group totals by the week number of the order date on the report.

The week number is not a field in the table but Iam using the function DATE2DWY("Order Date",2) to display the week number.

Can anyone please guide ?

Thanx a lot in advance.
Thanks & Best Regards,

Ram.

Answers

  • ara3nara3n Member Posts: 9,256
    Take a look at virtual table "Date"

    Use this table as dataitem and filter it to show week number only. Then use the Start and EndDate field to filter your open orders to print underneath it.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • sendohsendoh Member Posts: 207
    for this cases I use "integer" dataitem it's much more easier since you use this DATE2DWY("Order Date",2) and on my experience is much faster.
    Sendoh
    be smart before being a clever.
  • ramsay18477ramsay18477 Member Posts: 52
    Dear ara3n,

    Thanx a lot for your advise.
    Use this table as dataitem and filter it to show week number only

    I dont have week number as a field on the Sales Header table.

    Please confirm if Iam on the same page as you.


    Dear sendoh,

    Thanx a lot to u too for your advise.
    for this cases I use "integer" dataitem it's much more easier since you use this DATE2DWY("Order Date",2)

    Can you please explain in detail ?

    Thanx again to both of u.
    Thanks & Best Regards,

    Ram.
  • ara3nara3n Member Posts: 9,256
    Dear ara3n,

    Thanx a lot for your advise.
    Use this table as dataitem and filter it to show week number only

    I dont have week number as a field on the Sales Header table.

    Please confirm if Iam on the same page as you.

    The date table has also start and end date that you will use to filter on posting date.

    Then use the Start and EndDate field to filter your open orders
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ramsay18477ramsay18477 Member Posts: 52
    Hi ara3n,

    Thanx again.

    I would like to know how to view the Date table like you have displayed in your previous reply. Because I cannot find the Date table or table id 2000000007 in my Object list of tables ?
    Thanks & Best Regards,

    Ram.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    Hi ara3n,

    Thanx again.

    I would like to know how to view the Date table like you have displayed in your previous reply. Because I cannot find the Date table or table id 2000000007 in my Object list of tables ?

    just create a form based on this table.
    David Singleton
Sign In or Register to comment.