I am trying to run a report where the report line is a the item level, with qty sold, total sales, etc.
The Top items report is good, but you cannot filter by departement. (eg Report the top selling items in Dept A).
The Detailed sales report is OK also, and the group by item description is what I am looking for, but you cannot sort by the grouped level, so I cannot get the best seller to the top of the report.
Thanks, Greg FRGUSA
Didn't find your answer? Ask the community — no account required.
A
Akber Alwani
Hi, you can do the following to achive this:
Open the Sales -Top Items Report.grp in notepad. the file is located at \Program Files\Microsoft Retail Management System\Store Operations\Reports
Update/Replace the Begin Reportsummary with following code: TablesQueried = "FROM TransactionEntry WITH(NOLOCK) INNER JOIN [Transaction] WITH(NOLOCK) ON TransactionEntry.TransactionNumber [Transaction].TransactionNumber LEFT JOIN
Item WITH (NOLOCK) On TransactionEntry.ItemID = Item.ID LEFT JOIN Category WITH(NOLOCK) ON Item.CategoryID = Category.ID LEFT JOIN Department WITH(NOLOCK) ON Item.DepartmentIDÞpartment.ID" SelCriteria = "" GroupBy = "Department.Name,Category.Name,Item.ItemLookupCode"
Add the column underneath of Category.Name column with following code: Begin Column FieldName = "Department.Name" DrillDownFieldName = "Department.Name" DrillDownReportName = "" Title = "Department" VBDataType = vbString Formula = "" ColHidden = False ColNotDisplayable = False FilterDisabled = False ColWidth = 1515 GroupMethod = groupmethodNone ColFormat = "" ColAlignment = flexAlignLeftCenter End Column
Now Save the file and run the report. You are accomplished what you want.
Please rate and give your comments about me.
"gregfrgusa" wrote:
G
gregfrgusa
K
Kevin
Akber,
I liked the idea of seeing the top items in specific departments so I tried this and I am getting some errors. Here is what I have: Thanks for your help. Kevin
//--- Report Summary --- //
Begin ReportSummary ReportType = reporttypeSales ReportTitle = "Top Items Report" PageOrientation = pageorientationPortrait OutLineMode = True Groups = 0 GroupDescription = "" DisplayLogo = True LogoFileName = "MyLogo.bmp" ProcedureCall = "" TablesQueried FROM TransactionEntry WITH(NOLOCK) INNER JOIN [Transaction] WITH(NOLOCK) ON TransactionEntry.TransactionNumber [Transaction].TransactionNumber AND TransactionEntry.StoreID = [Transaction].StoreID LEFT JOIN Item WITH (NOLOCK) ON TransactionEntry.ItemID = Item.ID LEFT JOIN Category WITH(NOLOCK) ON Item.CategoryIDÊtegory.ID LEFT JOIN Department WITH(NOLOCK) ON Item.DepartmentIDÞpartment.ID"