How to use SSRS to format financial report using non-sequential account order

  • I am new to SSRS 2012 and am trying to create several financial reports (trial balance, profit & loss, balance sheet, etc.).

    Our general ledger account numbers are in the ###-###-### format (i.e 481-389-810)

    The problem I am having is that the finance dept wants the P&L report in a specific format using groups/headings and with the GL accounts appearing in a non-sequential order.

    See example in attached image file that shows GL Account Description, GL Account Number, Company Number fields

    How do I get SSRS to use, display and keep the non-sequential order?

    Example 1 using simplified account numbers:

    Account# Description

    100 Truck Repairs

    150 Rail Repairs

    120 Warehouse Inventory

    110 Auto Repairs

    160 Property Maintenance

    I am assuming others have had a similar problem and possible solution(s). I would appreciate any assistance in resolving this issue.

  • SSRS will use the same sort order as the query/stored procedure you base the report on, so if you have the data sorted in your stored procedure, you're all set.

    If that doesn't help, we may need more information - like what are the rules for sorting?

  • Here is what I would do.

    I would create a table that lists the accounts that must be in a specific order with a sequence number for the order that that the accounts need to be displayed. I would then join to this table using an left outer join. Where the sequence number is null substitute some default value (use ISNULL or COALESCE to accomplish this) then the query sorts on the sequence number first then the account number.

  • I have the report now sorting the accounts in the correct order that the users want. Now my problem is getting SSRS to be able to incorporate the correct financial statement headings and subheadings (text).

    The report output/preview looks like attached image file: IS-Bal Statement. I can't figure out how to get the headings and subheadings to work in the report like attached image file Statement Labels - see items in red/bold.

    I think that I may need to use some kind of IIF expression but not sure. If I do, then do I need to create some expression for each heading/subheading?

    Can anyone point me in the right direction to make this work?

    Thanks.

  • You need to include the headings/subheadings in the data and group the report by them.

    MM



    select geometry::STGeomFromWKB(0x0106000000020000000103000000010000000B0000001000000000000840000000000000003DD8CCCCCCCCCC0840000000000000003DD8CCCCCCCCCC08408014AE47E17AFC3F040000000000104000CDCCCCCCCCEC3F9C999999999913408014AE47E17AFC3F9C99999999991340000000000000003D0000000000001440000000000000003D000000000000144000000000000000400400000000001040000000000000F03F100000000000084000000000000000401000000000000840000000000000003D0103000000010000000B000000000000000000143D000000000000003D009E99999999B93F000000000000003D009E99999999B93F8014AE47E17AFC3F400000000000F03F00CDCCCCCCCCEC3FA06666666666FE3F8014AE47E17AFC3FA06666666666FE3F000000000000003D1800000000000040000000000000003D18000000000000400000000000000040400000000000F03F000000000000F03F000000000000143D0000000000000040000000000000143D000000000000003D, 0);

  • Forum Etiquette: How to post Reporting Services problems
  • [/url]
  • Forum Etiquette: How to post data/code on a forum to get the best help - by Jeff Moden
  • [/url]
  • How to Post Performance Problems - by Gail Shaw
  • [/url]

  • Start by right clicking the detail row and select to add a parent group. In the popup dialogue you select the column to group by and if you want to include a header.

    ----------------------------------------------------

  • Viewing 6 posts - 1 through 5 (of 5 total)

    You must be logged in to reply to this topic. Login to reply