Display quantities sold in past 30 days for each item

johnsogjjohnsogj Member Posts: 103
I'm creating a report based on the item table.

For each item , I'd like the report to display the quantity sold in the past 30 days.

Can anyone help me with this?

Thanks,
Molly

Comments

  • kinekine Member Posts: 12,562
    OnPreDataItem
      Item.SETFILTER("Date Filter",'%1..%2',CALCDATE('<-30D>',TODAY),TODAY);
    
    OnAfterGetRecord
      Item.CALCFIELDS("Sales (Qty.)");
    

    If you will do that for all items and you will print the "Sales (Qty.)" field, you will have what you need... (I hope)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from Upcoming version NAV 6.0 (formerly NAV 5.1) forum to Navision forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • johnsogjjohnsogj Member Posts: 103
    Thank you Kamil! it worked exactly as I had hoped.
Sign In or Register to comment.