Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Creating a list with items sold by year by month

(0) ShareShare
ReportReport
Posted on by 195

I'm trying to do some inventory analysis, is there a way to create a smart list or report that has item sales listed by year by month?

*This post is locked for comments

  • Ben Clester Profile Picture
    Ben Clester 195 on at
    Re: Creating a list with items sold by year by month

    Finally, got the information I needed; thanks for everyone's help.

  • Victoria Yudin Profile Picture
    Victoria Yudin 22,766 on at
    Re: Creating a list with items sold by year by month

    Ben,

    What I recommend is using my code to create a SQL view, then pointing SmartList/Excel Builder at that view.  Here is a blog post going through the steps of doing this with SmartList Builder: victoriayudin.com/.../how-to-use-a-sql-view-in-smartlist-builder.

  • Ben Clester Profile Picture
    Ben Clester 195 on at
    Re: Creating a list with items sold by year by month

    It would be GP's SmartList/ Excel Report builder, Which is different than what Victoria wrote her code in right?

  • Mike Smith Profile Picture
    Mike Smith 6,840 on at
    Re: Creating a list with items sold by year by month

    Ben,

    When you mention "report builder", are referencing SQL Reporting Services "Report Builder" or GP's SmartList/Excel Report builder?

    If using SQL Reporting Services "Report Builder", there is a report wizard that works awesome with prebuilt queries like what Victoria has.  You can basically take the "select" portion of a query and embed this in the report and then work through the wizard, grouping by the "Month" and "Year" fields in the query (assuming some items in the query here but it is super easy once you get used to it).

  • Ben Clester Profile Picture
    Ben Clester 195 on at
    Re: Creating a list with items sold by year by month

    Yea it looks like Victorias written what I need, just need to get familiar with report builder. Thanks everybody for your help.

  • Mike Smith Profile Picture
    Mike Smith 6,840 on at
    Re: Creating a list with items sold by year by month

    You can create 2 calculated field in SmartList/Excel Report Builder for this: "CalcMonth" and "CalcYear" (or whatever you want to call them).

    CalcMonth:

    DATEPART(MM,DataFieldGoesHere)

    CalcYear:

    DATEPART(YYYY, DataFieldGoesHere)

    This will create the necessary "Year" and "Month" numbers for creating summary reports or Pivot Table analysis (no extra data entry).

    While I haven't reviewed Victoria's SQL queries, you may be time and resource commitment ahead to review these with the IT team as she may have already done some heavy lifting already in these queries.

  • Ben Clester Profile Picture
    Ben Clester 195 on at
    Re: Creating a list with items sold by year by month

    I'm trying to get access to the report builder and may have it on friday. Mike, when you say establish do you mean manually input the month and year? I ask because I was doing what David recommended, but having to input all of the data was getting to be too time consuming.

  • GPDavid Profile Picture
    GPDavid 2,250 on at
    Re: Creating a list with items sold by year by month

    In GP, there is an Item Period History by Site/Item report found under Reports | Inventory | History.  Select the report called "Item Period History" and see how that works for you.

  • Victoria Yudin Profile Picture
    Victoria Yudin 22,766 on at
    Re: Creating a list with items sold by year by month

    Ben,

    If you have SmartList Builder or another reporting tool, I have a bunch of SQL code posted to show sales data a few different ways if you are using the SOP module: victoriayudin.com/.../sop-sql-views.  Hopefully some of these will help with what you're looking for.

  • Suggested answer
    Mike Smith Profile Picture
    Mike Smith 6,840 on at
    Re: Creating a list with items sold by year by month

    Ben,

    Do you have access to SmartList/Excel Report Builder?

    You could create a SmartList with Year and Month Calculated fields and group on Year and Month with Summary on Extended Amount, Quantity, or other measure.

    You could also do this with standard SmartList, export to Excel, establish the Year and Month columns and use a Pivot Table to analyze.

    Just make sure whatever tool is used that you account for voids and returns and anything else that may impact your report totals.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans