The power of queries to map Business Central entities into Power BI

The power of queries to map Business Central entities into Power BI

If you use Power BI connected to Business Central you can map new entities (page, queries) to access data, in addition to those already existing prepared by Microsoft.

How to add new entities?

In Business Central Entity = Page or Query exposed as Web Service (OData) and mapped by Business Central Connector (native or by gateway), the structure is different from CRM and other systems etc. etc.

To add new entities that can be used in Power BI you can map existing pages\queries or create new pages and queries mapped as Web Services.

Pages and Queries

Pages VS Queries

If I publish the standard pages (or custom pages), I could run into these problems:

– I could have Locks on a table

– Pages read data from a single table

– There could be “Filter” fields that go wrong in Power BI (“unknown” field format)

– Functions added to the standard page by extension (ex: “Lookup” of a field etc.) that could slow down the extraction of data by going out in time, furthermore I might not know which app has extended the page. Better to create a new page to expose as Web Service (better control).

Ex: OLE DB Error (Item Table is Locked) > ItemList (page 31) exposed

OleDB Errore: Timeout !!

Ex: “Fields Filter” Errors

Error by Filter Fields

Benefits of using queries:

– Read data from multiple tables

– They can already totalize the data upstream (data segmentation)

– They are “NO Lock” by Design – the queries are NO lock by Design, they do not block the tables

Ex: New Query “ItemListWS” is exposed instead of ItemList Page

Query ItemListWS exposed as WS (OData)
Update is working ALWAYS for queries!!!

EX: “QUERY” on Item table

Some queries “READY TO GO” in my GitHub page

*** Tip: use Queries!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.