← All posts

Analyze Sales Receivables with NAV and Power Pivot

Questions NAV cannot answer on its own: how much is overdue, and how long do particular customer groups actually take to pay? Building the model in Power Pivot.

Archive post from 2013. It describes Dynamics NAV and the Microsoft BI tools of that time; Dynamics 365 Business Central and today’s Power BI differ in places.

Recently we added a new business to our Power Pivot portfolio and we would like to share the path and some of the techniques that we used.

The idea is to provide a means to answer questions around the accounts receivable area – some questions that are not easy or impossible to answer directly in NAV such as:

Everything should not only be reported on a certain date but the development over time should be visualized as well.

Let’s start with the part in NAV since we are using NAV’s capability to publish pages and queries as oData-Webservices. First, we create a query that will later be used as the source of our fact table. It is based on the combination of customer ledger entries and detailed customer ledger entries, which is why queries are very suitable here.

The query is not overly complex:

Analyze Sales Receivables with NAV and Power Pivot

Most information comes from the detailed customer ledger entries because we need to know all transactions (invoices, credits, payments) – both the initial entries and all applications, realized losses, etc. in Power Pivot.

Since we want to use a separate Customer Dimension in Power Pivot (it is always best practice to use separate lookup tables in Power Pivot), we just need the Customer No. field here.

We use the Customer List page (Page 22) as the source of our Customer Lookup. Alternatively we could have created another query that returns the customers but normally it is preferable to re-use an existing page. The dimension set page is another custom page that gives us the 2 global and 8 shortcut dimensions to make them available in Power Pivot.

To summarize the NAV-part, the following screenshot shows the objects that we need to publish:

Analyze Sales Receivables with NAV and Power Pivot

The resulting data model in Power Pivot looks as follows in the diagram view:

Analyze Sales Receivables with NAV and Power Pivot

We are using two date tables that we import from SQL-Views. Dim Reporting Date is the main date table that will be used to report on different periods.

Based on this data model, we created a number of measures that shed light on different aspects of the receivables area. The first measures would also be (more or less) available in NAV and are just used as the base of the more advanced measures:

Using these base measures Power Pivot allows us to create the following measures:

To see it in action we created a pivot table for example showing the key figures per salesperson:

Analyze Sales Receivables with NAV and Power Pivot

I may drill down into the first Salesperson’s customers to compare their payment behaviour:

Analyze Sales Receivables with NAV and Power Pivot

Using our addon, it is possible to jump from each measure into the trend view (this screenshot was taken from another dataset):

Analyze Sales Receivables with NAV and Power Pivot

It is also possible to compare the trend of any combination of dimensions – for example to compare the number of days it took on average until invoices were closed between different branches:

Next postPowerpivot - chart of top customers since Inception

Questions on this topic?

Get in touch — we are happy to share what we know, beyond the blog too.

Get in touch