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 :
Small and medium business | Business Central, N...
Suggested Answer

P&L report in business central

(0) ShareShare
ReportReport
Posted on by 2,100

Hi All,

How to create P&L [Proft and Loss] report in business central? with dimension filter.

I have the same question (1)
  • Suggested answer
    Bilal Haider Profile Picture
    412 on at

    Hi,

    You can try to use Financial Reports (called Account Schedules in NAV) for P/L report with Dimension filter.  

    You do not need any development for that.

  • Suggested answer
    Bilal Haider Profile Picture
    412 on at

    You can use this tutorial and learning path,

    learn.microsoft.com/.../

  • Inkey Solutions Profile Picture
    2,100 on at

    raibilalhaider , Hi

    Could you please send me any reference link of how to create financial reports in BC?

    Thank you.

  • Suggested answer
    Ahmed Mohamed Rafik Profile Picture
    3,049 User Group Leader on at

    You can use the predefined account schedule reports that are already defined in General Ledger Setup.

    But first, you can easily set up the required accounts by using the Account Category and Sub Category.

    1- Go to G/L Accounts.

    2- Define the Category and Sub Category of every profit and loss account.

    3- Go to the Account Categories page.

    4-  Click on Generate Account Schedule to update the existing Income Statement in Account Schedule.

    5- Go to the defined account schedule "Income"

    6- View Report.

    If you find this information helpful, Click Yes to verify the answer to share with other community members

  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    hi

    you can follow these steps:

    Open the Business Central development environment and create a new report.

    In the report layout, add the relevant columns for your P&L report. These typically include revenue, cost of goods sold, gross profit, operating expenses, and net income.

    Next, add filters to the report for the relevant dimensions. For example, if you want to filter the report by department, you can add a filter for the "Department Code" dimension.

    Use the "DataItemTableView" property to link the report to the relevant table(s) in Business Central. For a P&L report, you may need to link to tables such as "General Ledger Entries" and "Accounts."

    Use the "SetRange" method to apply the dimension filter to the report. For example, if you want to filter the report by a specific department, you can use the "SetRange" method to specify the "Department Code" dimension and the value you want to filter on.

    Finally, run the report to view the results with the dimension filter applied.

    example:

    // Set up a filter for the Department Code dimension

    MyFilter.SETRANGE("Dimension Code",DIMENSION::"Department Code");

    MyFilter.SETRANGE("Code", '001'); // Replace with your desired department code

    // Link to the General Ledger Entries table and filter by the dimension

    DataItemTableView = GeneralLedgerEntries;

    DataItemTableView.SETRANGE(GENERALLEDGERENTRIES."Dimension Set ID",DIMENSION::"My Dimension Set ID");

    DataItemTableView.SETFILTER(GENERALLEDGERENTRIES."Dimension Value Code",MyFilter);

    // Add the relevant columns to the report layout

    the exact code may vary depending on the specific dimensions and tables you are using in your report. You may also need to adjust the code to handle multiple dimension filters, if needed.

    DAniele

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans