Saturday, November 28, 2026
HomeBusiness IntelligenceFrom D365 Enterprise Central to Energy BI: Remodel Your Gross sales Knowledge...

From D365 Enterprise Central to Energy BI: Remodel Your Gross sales Knowledge into Insights


From D365 Enterprise Central to Energy BI: Remodel Your Gross sales Knowledge into Insights

Are you a Energy BI developer who has immediately been requested to construct reviews on high of Dynamics 365 Enterprise Central gross sales information?

The request usually sounds fairly easy. We want gross sales, gross revenue, gross margin, buyer efficiency, product efficiency and maybe some traits for the executives. However earlier than constructing any visuals, we have to perceive the Enterprise Central information. Which tables do we’d like? How are they associated? What filters ought to we apply? And what do the values really imply? These are the questions I need to reply first.

This can be a level that I can not emphasise sufficient. If we don’t perceive the supply information schema, choosing a bunch of tables and loading them into Energy BI won’t magically give us an excellent analytical mannequin.

On this submit, I stroll by the answer from the accompanying video. Within the recording, I begin from a clean Energy BI Desktop file and construct it from scratch. We hook up with Dynamics 365 Enterprise Central, use the APIs, choose the tables we’d like, clear the info in Energy Question, construct the info mannequin, create the measures and at last use Copilot in Energy BI to generate the primary model of the report pages.

Watch the total video on my YouTube channel right here:

Take heed to the AI generated podcase right here:

An enormous shout-out goes to Tharanga, my fellow Microsoft Enterprise Purposes MVP, who helped me perceive the Enterprise Central information mannequin. Additionally an enormous thanks to Manmohan, a Enterprise Central professional who is aware of the schema inside out. With out that Enterprise Central information, I’d have spent much more time determining which tables and columns I really need.

The Knowledge Mannequin Comes First #

Take a look at the video on YouTube at 0:21

Earlier than we get began, there may be one level I want to elevate: information modelling continues to be the important thing a part of Energy BI.

Enterprise Central supplies a complete lot of various APIs they usually expose the info in several methods. Not each API exposes the identical information both, so even earlier than we get into Energy Question, we have to know what we’re connecting to and why.

We have to know which tables to pick, which filters to use and find out how to create the relationships. With out that understanding, it’s exhausting to know whether or not the report is giving us the proper solutions.

For this instance, I take advantage of Commonplace APIs v2.0 and the next 4 Enterprise Central tables:

  • clients
  • gadgets
  • itemLedgerEntries
  • itemCategories

That’s just about it. With these 4 tables we are able to already reply a complete lot of helpful questions on gross sales.

Having mentioned that, it is a demo mannequin. Your actual Enterprise Central implementation can have completely different necessities, extensions and customized APIs, so don’t take these 4 tables as a common recipe for each Enterprise Central reporting undertaking.

Connecting Energy BI to Dynamics 365 Enterprise Central #

Take a look at the video on YouTube at 2:21

I begin with a brand new Energy BI Desktop session. To comply with alongside, choose Get Knowledge, seek for Enterprise Central, choose the Dynamics 365 Enterprise Central connector, then click on Join.

When you’ve got linked to the Enterprise Central occasion earlier than, Energy BI might routinely join utilizing the saved credentials. In any other case, you need to authenticate first after which entry the atmosphere.

Take a look at the video on YouTube at 3:20

In my instance, I choose the SANDBOX-DEV atmosphere, broaden the CRONUS NZ firm, then open Commonplace APIs v2.0.

Dynamics 365 Enterprise Central chosen within the Get Knowledge dialog.

Commonplace APIs v2.0 underneath SANDBOX-DEV and the CRONUS NZ firm.

Deciding on the Tables for the Gross sales Mannequin #

Take a look at the video on YouTube at 3:37

As you’ll be able to see within the Navigator, there are a complete lot of tables out there. That is precisely the place having some understanding of the Enterprise Central schema turns into crucial.

Should you wouldn’t have that information your self, I strongly advise you to talk with somebody who does. It is perhaps a Enterprise Central marketing consultant in your organisation, somebody out of your implementation accomplice, or whoever understands how your Enterprise Central resolution has been configured.

You possibly can after all use documentation and Copilot that can assist you determine the tables as nicely, however remember that the API you might be connecting to issues as a result of not all information is uncovered by all APIs.

For this walkthrough, I choose the next 4 tables:

Desk Objective on this mannequin
clients Buyer data used to analyse gross sales by buyer and different buyer attributes
gadgets Product or merchandise data
itemLedgerEntries The transactional desk containing gross sales and buy associated entries
itemCategories Class data used to analyse gadgets by class

The itemLedgerEntries desk is the essential one right here as a result of it retains each gross sales and buy associated entries. We’ll trim it all the way down to the gross sales information shortly.

After choosing the 4 tables, I click on Remodel Knowledge reasonably than loading all the pieces straight into the mannequin.

Deciding on the Enterprise Central tables earlier than opening Energy Question. The purchasers desk is chosen above the seen a part of the checklist.

Cleansing the Enterprise Central Knowledge in Energy Question #

Take a look at the video on YouTube at 5:26

Energy Question Editor opens and from right here we are able to rename columns, change information varieties, take away the issues we don’t want and make the info extra appropriate for reporting.

I don’t need to overcomplicate this half. The primary goal is to maintain the mannequin clear and solely carry the info that’s helpful for our reporting necessities.

Rename the Columns to One thing Extra Consumer Pleasant #

Take a look at the video on YouTube at 5:38

A number of of the API tables expose a column known as displayName.

Having displayName in a number of tables is just not actually useful after we get into the mannequin and begin constructing reviews. So I rename these fields to one thing that explains what they really are, for instance buyer title, merchandise description and class title.

It’s a small factor, however pleasant naming makes an enormous distinction later. That is helpful for us as builders, for the report authors, and in addition for any AI expertise that should perceive the semantic mannequin.

The generic displayName area in itemCategories earlier than renaming it.

Take away the Columns We Do Not Want #

Take a look at the video on YouTube at 6:27

I usually take away the columns that we don’t want for the mannequin or the report. There isn’t any profit in loading each column simply because it’s out there.

Within the clients desk in my demo, I’ve 38 columns and solely 5 rows. Clearly the 5 rows are simply due to the pattern information, however having 38 columns is an effective reminder that we must always not preserve each area simply because the API offers it to us.

For instance, there may be an id column which is a GUID. On this specific mannequin it’s not contributing to any of the relationships and I’m not utilizing it within the report, so I don’t must preserve it.

One little tip right here is to make use of Select Columns on the Dwelling ribbon in Energy Question Editor. As an alternative of choosing a number of columns one after the other and eradicating them, I usually discover it simpler to decide on the columns I need to preserve and untick the remaining.

I repeat the identical course of for the opposite tables.

Select Columns on the Energy Question Dwelling ribbon.

Select Columns lets us choose the client fields to maintain.

Now, there is a vital level right here that comes again later within the video. A column that appears pointless at this stage might turn out to be needed after we begin creating measures. That occurs to me on this demo as nicely, and we are going to repair it after we get there.

Filter Merchandise Ledger Entries to Gross sales #

Take a look at the video on YouTube at 8:08

Right here is one other essential level.

itemLedgerEntries accommodates extra than simply gross sales. For this report I solely need to analyse the gross sales transactions, so I filter the entryType column and preserve Sale solely. That is the gross sales entry kind proven within the recording.

That places a filter on high of the merchandise ledger entries question and provides us the transactional information we’d like for this gross sales mannequin.

Filtering entryType to the Sale entry kind used within the recording.

I don’t rename all of the tables within the video, however in an actual undertaking chances are you’ll need to rename them to one thing extra person pleasant as nicely.

Do Not Go away Columns with the Any Knowledge Sort #

Take a look at the video on YouTube at 9:05

One other greatest observe is to keep away from leaving columns with the Any information kind.

In Energy Question, the ABC123 icon represents Any. We will after all click on the info kind icon for every column and alter them one after the other, however when you have many columns that turns into a little bit cumbersome.

One choice price figuring out about is Remodel > Detect Knowledge Sort, because the command is labelled within the recording.

Energy Question will attempt to detect the right varieties primarily based on the supply and the values that it may well see. It isn’t good, so I’d not blindly belief it, however it may well save a while. I nonetheless undergo the essential columns and ensure they’re right.

I pay specific consideration to the columns utilized in relationships. The info varieties should be appropriate on either side, so I verify that the Enterprise Central key columns are Textual content.

The Detect Knowledge Sort command on the Remodel ribbon.

As soon as the transformations are prepared, I click on Shut & Apply and cargo the cleaned information into the mannequin.

Constructing the Enterprise Central Knowledge Mannequin #

Take a look at the video on YouTube at 10:55

Now we’ve got all of the tables loaded and it’s time to create the relationships.

For this instance, itemLedgerEntries is our reality desk. I assume you might be accustomed to the idea of reality and dimension tables and dimensional modelling. If not, there are lots of sources out there on-line and I’ve additionally coated this matter in my e book, Knowledgeable Knowledge Modelling with Energy BI.

The relationships I create within the video are:

  • itemCategories[code] to gadgets[itemCategoryCode]
  • gadgets[number] to itemLedgerEntries[itemNumber]
  • clients[number] to itemLedgerEntries[sourceNumber]

There are a number of methods of making relationships in Energy BI. For this instance I simply persist with drag and drop, then verify the chosen columns within the relationship dialog earlier than saving it.

The shopper relationship makes use of itemLedgerEntries[sourceNumber] and clients[number], with many-to-one cardinality and a single filter route.

The itemCategories desk sits behind the gadgets desk as a substitute of connecting on to itemLedgerEntries. So if we need to be very exact, this isn’t a wonderfully flattened star schema. That’s completely positive for what I’m attempting to indicate right here. The essential factor is that the relationships make sense and the filter paths work the way in which we anticipate.

Including a Date Desk #

Take a look at the video on YouTube at 12:58

In dimensional modelling, we nearly all the time want a correct Date desk.

We usually need to analyse the info by 12 months, month, quarter and what not. A Date desk offers us these attributes in a single place.

Enterprise Central already has a date desk out there and you might be greater than welcome to make use of it if it really works in your necessities. For this particular instance I don’t use that desk as a result of the date vary is far bigger than what I would like, and there’s no level bringing a really giant date vary into this small pattern mannequin.

There are additionally a number of methods to create a Date desk. We will create a calculated desk within the mannequin utilizing DAX, or generate it in Energy Question. On this instance I create it in Energy Question.

My pattern information sits between 1 January 2023 and 31 December 2025, so I intentionally create a Date desk for that vary.

I create a Clean Question, rename it to Date, open Superior Editor and paste the next M code. It follows the question proven within the recording:

let
    StartDate = #date(2023, 1, 1),
    EndDate = #date(2025, 12, 31),
    DateList = Record.Dates(
        StartDate,
        Length.Days(EndDate - StartDate) + 1,
        #period(1, 0, 0, 0)
    ),
    DateTable = Desk.FromList(
        DateList,
        Splitter.SplitByNothing(),
        {"Date"},
        null,
        ExtraValues.Error
    ),
    AddYear = Desk.AddColumn(
        DateTable, "12 months", every Date.12 months([Date]), Int64.Sort
    ),
    AddMonthNo = Desk.AddColumn(
        AddYear, "MonthNo", every Date.Month([Date]), Int64.Sort
    ),
    AddMonth = Desk.AddColumn(
        AddMonthNo, "Month", every Date.ToText([Date], "MMMM"), kind textual content
    ),
    AddQtrNo = Desk.AddColumn(
        AddMonth, "QuarterNo",
        every Quantity.RoundUp(Date.Month([Date]) / 3), Int64.Sort
    ),
    AddQtr = Desk.AddColumn(
        AddQtrNo, "Quarter",
        every "Q" & Quantity.ToText([QuarterNo]), kind textual content
    ),
    AddDay = Desk.AddColumn(
        AddQtr, "Day", every Date.Day([Date]), Int64.Sort
    ),
    #"Modified Sort" = Desk.TransformColumnTypes(
        AddDay, {{"Date", kind date}}
    )
in
    #"Modified Sort"

The dates above are particular to the info that I take advantage of within the video. In an actual resolution, you have to select the vary that is smart in your mannequin.

As a normal modelling precept, I usually need the Date desk to start out from 1 January of the required beginning 12 months and proceed to 31 December of the required ending 12 months. This provides us full calendar years for time intelligence and the date attributes we use in reviews.

The Date question in Superior Editor, bounded from 1 January 2023 to 31 December 2025.

After loading the Date desk, I create the connection between Date[Date] and itemLedgerEntries[postingDate].

At this level I additionally verify the info varieties on either side of all of the relationships. The date fields are Date and the Enterprise Central key fields used within the different relationships are Textual content.

The finished mannequin from the recording, with Date and the 4 Enterprise Central tables.

Creating the Gross sales Measures #

Take a look at the video on YouTube at 15:56

With the relationships in place, it’s time to create the measures.

I first create a few them within the standard manner utilizing New measure, simply to indicate the method.

New measure on the Desktop ribbon.

For instance:

Whole Gross sales Quantity =
SUM ( 'itemLedgerEntries'[salesAmountActual] )

And:

Whole Price Quantity =
SUM ( 'itemLedgerEntries'[costAmountActual] )

The batch definitions linked beneath embrace the next measures:

Whole Amount =
SUM ( 'itemLedgerEntries'[quantity] )
Gross Revenue =
[Total Sales Amount] + [Total Cost Amount]
Gross Margin % =
CALCULATE (
    DIVIDE ( [Gross Profit], [Total Sales Amount] ),
    ALL ()
)
Gross sales per Buyer =
DIVIDE (
    [Total Sales Amount],
    DISTINCTCOUNT ( 'clients'[number] )
)

There are two particulars to remember in these definitions. Gross Revenue provides the associated fee quantity as a result of prices have a unfavourable signal on this pattern. In case your supply shops prices as optimistic values, you have to alter the calculation. Additionally, the batch Gross Margin % measure makes use of ALL (), so it removes the report filters. For a margin that follows the present filter context, use DIVIDE ( [Gross Profit], [Total Sales Amount] ) with out that filter elimination.

Now, I don’t need to sit there and create 50 measures one after the other. That is the place DAX Question View turns into very useful.

Creating 50 Measures with DAX Question View #

Take a look at the video on YouTube at 18:05

Within the video I have already got the measure definitions ready. I open DAX Question View, paste the definitions and Energy BI detects 50 measures within the script.

I then choose Replace mannequin with modifications, verify the operation, and people measures are added to the semantic mannequin.

If you have already got the measure definitions ready, this protects a number of repetitive work. I discover it a lot simpler than creating each measure manually.

DAX Question View detects 50 measures earlier than updating the mannequin.

And Then Some Measures Fail #

Take a look at the video on YouTube at 18:40

Now, right here is one thing that will look acquainted when you have labored on a number of Energy BI initiatives.

A few measures fail as a result of they reference columns that I eliminated earlier once I was cleansing the info. In itemLedgerEntries, these lacking columns are:

  • documentType
  • documentNumber

So I’m going again to Energy Question, discover the step the place I eliminated the pointless columns, click on the gear icon and add these fields again.

Slightly later, I discover that some measures additionally want two buyer fields:

So I do precisely the identical factor within the clients question and reload the mannequin.

I nonetheless suggest eradicating pointless columns. However what we name “pointless” will depend on the reporting necessities. Initially I didn’t want these fields for the relationships, however later a few of my measures required them. So they don’t seem to be pointless anymore.

That’s fairly regular. Knowledge modelling is an iterative course of and typically we’ve got to return and alter an earlier resolution.

Reopening the column-selection step to revive documentNumber and documentType.

You may get the broader set of definitions from Energy BI Gross sales Measures for D365 Enterprise Central on GitHub. That is the file linked within the video description.

Utilizing Copilot to Generate the Report Pages #

Take a look at the video on YouTube at 20:41

At this level the semantic mannequin is prepared and the measures are working. Now we are able to transfer to the report pages.

Right here is one thing I point out within the video: I didn’t manually construct all of these report pages from scratch.

I used Copilot in Energy BI to generate the pages, then I polished the consequence to make it nearer to what I wished. For instance, I modified the colors manually.

The working instance proven within the recording accommodates the next pages:

  • Govt
  • Govt Traits and Dangers
  • Gross sales Efficiency
  • Buyer Insights
  • Product & Class Evaluation
  • Progress

The Govt web page after Copilot technology and guide formatting.

Operating the Similar Copilot Immediate Once more #

Take a look at the video on YouTube at 21:36

Let me present you yet one more factor from the video.

To indicate the method once more, I open Copilot in Energy BI Desktop and paste the identical detailed immediate that I used earlier than. The immediate explains what I would like on the web page and which measures Copilot ought to use.

Open Copilot from the Energy BI Desktop ribbon.

The unique immediate specifies the web page title and the measures for the KPI playing cards.

The newly generated web page is near the earlier one, however it’s not precisely the identical. On this consequence, the class chart is positioned beneath the client chart, and the playing cards nonetheless want their quantity codecs adjusted.

A number of the playing cards are comparable and the Govt Overview title is there, however the consequence nonetheless wants some tweaking. Operating the identical immediate once more doesn’t give me precisely the identical web page on this demo.

Copilot can undoubtedly save us time, nevertheless it doesn’t imply that we click on a button and the report is completed. We nonetheless must evaluation what it generated, validate the numbers, verify the visuals after which apply the formatting and enterprise necessities that we really need.

The brand new Govt Overview web page generated from the identical immediate, earlier than guide formatting.

Wrapping Up #

Take a look at the video on YouTube at 22:54

The general move is just not overly sophisticated as soon as we perceive the Enterprise Central schema.

We join Energy BI Desktop to Enterprise Central by the required API, choose the tables that we’d like, clear the info in Energy Question, preserve the helpful columns, filter the merchandise ledger to gross sales, verify the info varieties, construct the relationships after which add a correct Date desk.

After that we create the measures. If we’ve got a bigger set of definitions, DAX Question View could make that course of a lot quicker. Then, as soon as the semantic mannequin is in fine condition, we are able to use Copilot to assist us with the primary model of the report pages.

For me, a very powerful level continues to be the identical one which I discussed at the start. The info mannequin comes first.

Copilot may help. Good visuals may help. Having 50 measures may help. However none of them can compensate for a mannequin that doesn’t characterize the supply information appropriately.

As soon as that basis is there, constructing helpful Energy BI reviews on high of Enterprise Central turns into a complete lot simpler.

How do you usually method Enterprise Central reporting in Energy BI? Do you utilize the Commonplace APIs straight, or do you stage the info someplace else earlier than it reaches Energy BI? Please share your expertise within the feedback beneath. I hope you discover this walkthrough useful.

Should you discovered this handy, you’ll be able to comply with me on LinkedIn, subscribe to BI Perception on YouTube, or comply with the BI Perception podcast on Spotify. I additionally share updates on Bluesky and X, overlaying Energy BI, Microsoft Material, AI, and the real-world information and analytics issues I come throughout alongside the way in which.


Uncover extra from BI Perception

Subscribe to get the most recent posts despatched to your e mail.



RELATED ARTICLES

Most Popular

Recent Comments