Please watch the video in 1080p because it is recorded in High Resolution.
Please note the script of the presentation is below so you can read along with the demonstration if you like.

Hello and welcome to our latest blog post.
I am Sofie, your BIDA AI Assistant.
I will be reading this blog post for you today, on behalf of Peter.
I am really pleased to be able to bring you some news that I think will really interest you.
This blog post is an update on blog post number fifty of the same name.
We recommend that you also watch the video on blog post fifty before watching this video.
You can watch the video on blog post fifty using the button below.
We have done a mountain of work on creating the fact table views over the top of Business Central twenty twenty three.
We have invented a new way to get most of the joins for a fact table done automatically.
This video is intended for all business people who are frustrated that it is so hard to get answers from your operational systems.
If you are a business person, and you are frustrated that your I T department is telling you it takes days, or weeks, to get answers to questions that are urgent for you?
Then you will want to watch this video.
We are using Business Central twenty twenty three as an example, but what we will present today applies to the entire world of getting questions answered from operational systems.
So, as ever, on with the demo!
Please note, because of their size the demonstration databases are stored on our public one drive. Anyone can download the two databases, but microsoft will require you to be logged into an outlook account or an office account for the link to work.
Demonstration
Here we are on our main BIDA development machine.
We are inside the Business Central twenty twenty three Direct Query Database.
You can see that there are three thousand and nine hundred and eighty five views in this Business Central Direct Query database.
That is a lot of views.
This is how many views are needed over the top of Business Central to get all the fact tables to work.
Just to be clear we have created a view for each dimension table needed.
For example there is a date dimension table for each different date that is used as a dimension table.
There are over one hundred and fifty date related views.
Most of these date related views are just views over the top of the one date table.
We create these views so that it is easier to use tools like Power B I over the top of these views.
Demonstrating Fact Tables
Now.
We will filter the views to show the fact tables.
You can see that there are five hundred and fourteen fact table views at the current time.
This will very likely increase as the views are improved.
Now we will scroll down to the sales lines views.
Now we will select the top one thousand rows from the demonstration database.
When we click down one page you can see that there are thirty eight dimension table lookup keys at the beginning of the fact table.
Obviously, you do not need to use every key in every query.
We will click on the column for shipment date and you can see that these are integer keys.
The first two digits are the customer number for this instance which is 10 to 99.
The third digit is the level of the date value.
For this sort of view this will always be one for the lowest level of date values which is the day level.
The next six digits are a two digit year, a two digit month, and a two digit day.
By making the key for the dates be in the format year, month, day it is possible to read the key and know what date the key is referring to.
The first three digits are in use for our data warehousing offering and we have kept them in the direct query version.
You are free to change these keys your self for your site.
Now we will click on the sell to customer key.
You can see that the integers are set correctly.
You can see keys for eighteen, thirty four, fourty four and so on.
As we scroll across you can see the keys are set for other dimensions like the location, the bill to customer, the general business posting group, the V A T business posting group, the V A T product posting group, the sale currency, the sale unit of measure, and so on.
The last key on this row is the key for the item sold itself.
After the keys you can see the actual data on the record.
Now we will scroll across to the far right hand side of the record and you can see for your self that all the data is exposed through the view.
Now we will scroll back across to the left.
Now we will script the view and explain how the view works.
You can see the create view statement.
You can see all the coalesce statements.
You can see that if a lookup is not found then the result will be zero.
In our data warehouse implementations we set zero as the key to say that there was no link from the fact record to the dimension record.
You can then see the view for the direct query from the business central sales line.
We have given all the underlying business central tables and columns better names that are easier to understand and to both reed and write.
You can see that the fields that form part of the primary key have a prefix to indicate that they are part of the primary key.
You will notice that all the dates have been translated to character fields.
This has been done to allow easier transfer to excel spreadsheets.
It is better to send dates and date times into spreadsheets as character strings rather than as dates or date time fields.
Now we will scroll down to the from clause.
You can see that the from clause is taking data from the business central demonstration database through a view that is renaming the table and the fields.
Then you can see a series of left joins.
There is a left join for each dimension table lookup from the fact record.
In this case there are thirty eight left joins.
The left join must include all the elements of the primary key for the table they are joining to.
The join field is defaulted to the dimension table character key field.
This has been a standard for more than thirty years now.
These left joins perform two very important functions.
Firstly, if a row does not exist in the dimension table for the key in the fact table then a zero is returned out of the view.
This links to the dimension table view that will say the value is unknown.
So, there is no loss of data when there is no proper row in the look up table.
This is a major problem when querying operational systems.
Lack of referential integrity results in the loss of rows which causes reports to be incorrect.
Secondly, because the views have been written and tested by us we have made sure that all fields in the primary key are used in the left join.
This means that you can not have accidental cartesian products by not supplying all the keys to the left join.
This is also a very common problem for writing SQL queries against an operational system data model.
Obviously, with five hundred and fourteen fact table views and one thousand five hundred and sixty five dimension table views the creation of all these views was a lot of work.
We have now perfected the method of creating dimension table views.
We do almost no by hand maintenance on the dimension table views now.
For fact tables we are at about ninety five percent automatically generated.
But as you can imagine there are a lot of joins to define.
Next.
We would like to show you that you can join headers and line data and send it all out as one row in a view.
Now.
We will go to the sales line two view and script it to a new window for you to read.
The first thing you will notice is that there are a lot more keys that are available.
This is because all the keys for both the sales header and the sales line are included in the view.
Where the same key is on both the header and the line we have created two keys because the values might be different.
For example, there is a header shipment date and a line shipment date.
There is a header sell to customer and a line sell to customer.
And so on.
Now we will scroll down.
Now you can see that each field that is coming from the header has the prefix header in the field name.
Now we will scroll down.
And now you can see that every field that is from the sales line has the prefix line in the field name.
In this way a field that is in both the header and the line can be easily distinguished on a report.
Now we will scroll down.
In the from clause you can see that the initial from clause is from the sales line and then there is an inner join to the sales header based on the document type and the document number of the sales header.
And after the join to the header you can see all the left joins that were created to join the fields on the sales header and line record to all the dimension table views that describe those fields in more detail.
This is the sort of base view that you can create and then copy and modify on a report by report basis.
I will talk more about that in just a minute.
Given this view you can see that it is possible to create any view you want to expose data to Power B I.
This gives you a great deal of freedom and flexibility in creating Power B I reports on top of your Business Central production database.
It also means that the costs of developing reports will be vastly reduced.
Indeed, we see that a market will evolve where you will be able to buy finished reliable Power B I reports for between five U S dollars and one hundred U S dollars depending on the value of the report.
We see a market where Power B I reports are sold as commodities and this will be to the enormous benefit of Business Central installed accounts.
Limitations Of These Views.
Because of the sheer number of joins and views that have been created we feel it is important to add a section in our blog post to warn potential users of these views of possible short comings in the early releases.
There are a lot of joins defined.
Thousands of them.
It is very possible that there are some errors in the joins in this first release.
Indeed, we would be amazed if we have made no mistakes at all given that we are working on a demonstration database and not on a production business central system.
We have very little test data to test these views on.
We recommend that you check the results these views are delivering to you to make sure that there are no errors in any specific query.
We would also like to make some recommendations on how we see these views might be best used by your company when using Power B I or a similar query tool.
It is obvious that querying your production Business Central database or replica will be very compute and input and output intensive.
This proposal of using pseudo dimensional views over the top of the business central tables is not a replacement for a proper data warehouse.
This proposal is a cheap and cheerful way of being able to perform reliable dimensional queries over your Business Central database without the cost of a proper data warehouse.
You can not expect to get all the benefits of a data warehouse at almost zero cost.
The main costs of running queries like this on your business central database are the processing and input and output costs.
If you run these queries on a replica of your business central database then you need to pay for the new server and licenses needed to run the replica database.
If you are a small business running business central then you will be able to run your reports directly from your production database in the middle of the night after the General Ledger processing is completed.
Smaller businesses with just a few hundred thousand sales items per year should have no problems running these views directly on top of their Business Central databases.
These smaller businesses who do not need a data warehouse, or can not justify a data warehouse, are the main prospective users of these free views.
Even so, there is no point performing all the joins for all the fact tables each time you want to query that fact table.
Similarly, there is no point in fetching all the fields for all the dimension tables for each query.
Our recommendation is to copy the base views we have provided for each report you want to write.
Then comment out all the joins and fields you do not want on this report and only expose those fields you want in each report from those views.
For example.
If you want to create a sales report just for the deliver to customer and the dates of those deliveries scheduled out for the next month?
Then you could copy the views that are available to you and then comment out all the joins and columns you do not need for this report.
You could only expose through the views the data you want on the report.
You could number them sequentially using three digit numbers to give you one thousand views that could be created over the top of one view.
Alternatively you could include the report number in the view name.
We think this might be a good idea because it means you could filter views in SQL server management studio by the report name and you would get all the views used by one report using that filter.
This format of creating views is going to lead to a massive library of views to be maintained so the easier they are to identify the lower the ongoing support costs will be.
We will not go into details on all the views here in this video because you can download this database and look at it your self.
Anyone who has experience in Business Central databases can see that presenting out all the data via dimensional models is a giant leap forward in making it easier to ask any question that you want.
To get data into Power B I you can simply create a set of views with the new report name as part of the name of the view.
You can filter the view names in Power B I so that you only get the new views with only the data you need for the report.
Then you need to add the joins for the views into the Power B I Semantic Model.
Once you have done that you are ready to go.
This is vastly easier than getting a new view exposed via the standard Business Central Interface to Power B I.
This sort of pseudo dimensional views makes every field in Business Central available to Power B I and the only extra effort on behalf of the report developer is the creation of some views and the setting up of joins in the semantic model.
That is a small price to pay for open access to every field in the Business Central database.
Of course, once there are many users of this twenty twenty three version we will bring out updates.
We would also like to add this offer to installed Business Central accounts.
If you have a Power B I dashboard that you would really like us to develop using this method?
Then we will offer to create it for free as long as we have your agreement that we can create a “standard report” out of it and we can sell it for a small amount in the Business Central marketplace.
If you want to keep such a report as confidential to your company?
Then we would ask to be paid properly to develop such a company confidential report using these techniques.
In any case, we will be much cheaper than the normal cost of report development by Business Central service providers.
We believe this mechanism may reduce the cost of report development right across the Business Central installed base.
In Summary
In summary what we have published and shown you today is that we have now developed and published for free five hundred and fourteen fact table views and one thousand five hundred and sixty five dimension table views over the top of Business Central twenty twenty three.
These views will allow you to use Power B I to query any field in your Business Central production database or a replica of it.
These views will vastly reduce the issues of accidental data loss or accidental cross products in hand written queries as well as queries that are generated by Power B I or other reporting tools.
These views will also vastly reduce the problems of getting A I to read the Business Central database.
These views bring the power of Power B I and dimensional modeling to your Business Central database.
The same idea can be used for any other large operational system database as well.
And with that?
I would like to say thank you very much for watching our video today.
I really appreciate your time and attention.
We hope you found this blog post interesting and informative.
I wish you a great day.
Thank you.
Sofie.
Your BIDA AI Assistant.
We will be emailing our subscribers useful and
valuable information regarding business intelligence.
Please subscribe here to be on our general emailing list.









Sildenafil vs Avanafil Pharmacology
Sildenafil vs Avanafil Pharmacology
Viagra vs sildenafil timing comparison
Viagra vs sildenafil timing comparison
sildenafil mechanism of action
sildenafil mechanism of action
this overview of sildenafil PK
this overview of sildenafil PK
tadalafil information hub
tadalafil information hub
browse the information center
browse the information center
Comments are closed.