web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

RMS Custom Report - Multiple Grouping

(0) ShareShare
ReportReport
Posted on by

I want to customize standard report under Reports>Sales - "Detailed Sales" I want to have multiple grouping; group by "Department.Name"  (first column) and "Category.Name" (second column).

Can somebody help me with this?

//--- Report Summary --- //

Begin ReportSummary

  ReportType = reporttypeSales

  ReportTitle = "Detailed Sales Report"

  PageOrientation = pageorientationPortrait

  OutLineMode = True

  Groups = 1

  GroupDescription = ""

  DisplayLogo = True

  LogoFileName = "MyLogo.bmp"

  ProcedureCall = ""

  TablesQueried = <BEGIN>

     FROM     TransactionEntry INNER JOIN [Transaction] WITH(NOLOCK) ON TransactionEntry.TransactionNumber = [Transaction].TransactionNumber

        INNER JOIN  Batch WITH(NOLOCK) ON [Transaction].BatchNumber = Batch.BatchNumber

        LEFT JOIN   Item WITH(NOLOCK) ON TransactionEntry.ItemID = Item.ID

        LEFT JOIN   Department WITH(NOLOCK) ON Item.DepartmentID = Department.ID

        LEFT JOIN   Category WITH(NOLOCK) ON Item.CategoryID = Category.ID

        LEFT JOIN   Supplier WITH(NOLOCK) ON Item.SupplierID = Supplier.ID

        LEFT JOIN   ReasonCode AS ReasonCodeDiscount WITH(NOLOCK) ON TransactionEntry.DiscountReasonCodeID = ReasonCodeDiscount.ID

        LEFT JOIN   ReasonCode AS ReasonCodeTaxChange WITH(NOLOCK) ON TransactionEntry.TaxChangeReasonCodeID = ReasonCodeTaxChange.ID

        LEFT JOIN   ReasonCode AS ReasonCodeReturn WITH(NOLOCK) ON TransactionEntry.ReturnReasonCodeID = ReasonCodeReturn.ID

        LEFT JOIN Register WITH(NOLOCK) ON Batch.RegisterID = Register.ID

        LEFT JOIN   Customer WITH(NOLOCK) ON [Transaction].CustomerID = Customer.ID

        LEFT JOIN   Cashier WITH(NOLOCK) ON [Transaction].CashierID = Cashier.ID

LEFT JOIN   QuantityDiscount WITH(NOLOCK) ON TransactionEntry.QuantityDiscountID = QuantityDiscount.ID

<END>

  SelCriteria = ""

  GroupBy = ""

  SortOrder = ""

End ReportSummary

//--- Title Rows ---//

Begin TitleRow

  Text = "<Store Name>"

  Font = "Arial"

  FontBold = True

  FontSize = 16

  Color = "Blue"

End TitleRow

Begin TitleRow

  Text = "<Report Title>"

  Font = "Arial"

  FontBold = True

  FontSize = 12

  Color = "Black"

End TitleRow

Begin TitleRow

  Text = "Generated On <Report Date>"

  Font = "Arial"

  FontBold = True

  FontSize = 10

  Color = "Black"

End TitleRow

//--- Filters ---//

Begin Filter

  FieldName = "[Transaction].Time"

  FilterOp = reportfilteropBetween

  FilterLoLim = "<Today>"

  FilterHilim = "<Today>"

End Filter

//--- Columns ---//

Begin Column

  FieldName = "Department.Name"

  DrillDownFieldName = "Department.Name"

  DrillDownReportName = ""

  Title = "Department"

  VBDataType = vbString

  Formula = ""

  ColHidden = False

  ColNotDisplayable = False

  FilterDisabled = False

  ColWidth = 2205

  GroupMethod = groupmethodNone

  ColFormat = ""

  ColAlignment = flexAlignLeftCenter

End Column

Begin Column

  FieldName = "Category.Name"

  DrillDownFieldName = "Category.Name"

  DrillDownReportName = ""

  Title = "Category"

  VBDataType = vbString

  Formula = ""

  ColHidden = False

  ColNotDisplayable = False

  FilterDisabled = False

  ColWidth = 1515

  GroupMethod = groupmethodNone

  ColFormat = ""

  ColAlignment = flexAlignLeftCenter

End Column

.....so on

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Antonijo Todorovik Profile Picture
    4,025 on at

    Hi Babken,

    The only thing You can do is this next: Create a copy of the report file in the same folder where the original report is and rename it like this "Custom - XXXXXXX" and edit it (Notepad), by changing the "Groups = 1" line by putting "Groups = 3". Restart the Manager and look after the personalized report under Reports / Custom reports... Your report should sumarize now per Department and Category....

    Regards, A.

  • Community Member Profile Picture
    on at

    Hi Antonijo,

    Thank you very much!

    Regards,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans