Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Business Central forum

Report Showing Items & Dimensions

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm looking to get a single view or table that shows my Items in Business Central and the Dimensions each Item has been assigned. Any ideas how I can get this?

Thanks, Steve

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Report Showing Items & Dimensions

    Yes obviously you can do that in PowerBI without problems using OData for example (just need to publish a query object in NAV).

  • Community Member Profile Picture
    on at
    RE: Report Showing Items & Dimensions

    Hi Stefano, this looks great but we don't have anyone with AL skills here, unfortunately.

    Any idea if I could do this with Power BI?

    Thanks, Steve

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Report Showing Items & Dimensions

    You need to create an extension in VSCode with your DataItem (Item table and related Default Dimension table, where the relation is Table ID = 27 and "No." = your Item No.).

    Then, in AL a report is defined like the following example (I've placed here a sample with 2 related tables):

    When compiling, VSCode creates the layout (RDLC or Word) and you can modify them in Report Builder.

    report 50100 MySalesOrder

    {

       //DefaultLayout = Word;

       RDLCLayout = 'Layout\MySalesOrderReportRDLC.rdl';

       WordLayout = 'Layout\MySalesOrderReportWord.docx';

       UsageCategory = ReportsAndAnalysis;

       ApplicationArea = All;

       CaptionML = ITA = 'My Sales Order Report', ENU = 'My Sales Order Report';

    dataset

    {

       dataitem("Sales Header"; "Sales Header")

       {

           column("No"; "No.")

           {

           }

           dataitem("Sales Line";"Sales Line")

           {

               DataItemLink = "Document Type"=FIELD("Document Type"),"Document No."=FIELD("No.");

               column(Type; Type)

               {

               }

           }

       }

    }

       /* requestpage

       {

           layout

           {

               area(content)

               {

                   group(GroupName)

                   {

                       field(Name; SourceExpression)

                       {

                       }

                   }

               }

           }

           actions

           {

               area(processing)

               {

                   action(ActionName)

                   {

                   }

               }

           }

       }

       var

           myInt: Integer; */

    }

  • Community Member Profile Picture
    on at
    RE: Report Showing Items & Dimensions

    Hi Stefano, that's great thanks.

    But I don't know how to 'create a report' in BC - can you help?

    I see lots of standard looking reports in the Reports ribbon but I don't know how to create my own one. I'm missing something obvious, I think.

    Thanks, Steve

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Report Showing Items & Dimensions

    This is exactly like in NAV. Check the Item table and then create a report based on Item and Default Dimension table for that item (there’s a 1:N table relation between these two tables)

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,060 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,858 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans