PBID external tool: Model Analyzer

mentioned above

Last month, the leader of the PowerBI.Tips community wanted me to develop a PowerBI model Document tool for managing and analyzing PowerBI tabular models, measurement values, table relationships, etc. At that time, I was not very interested in this because it was an unpopular demand and was targeted at The main performance analysis of the model can also be completed in DAX Studio, but when I read Meagan Longoria's blog Documenting your Tabular or Power BI Model , I realized that this requirement is still necessary. The article describes the use of DMV query To obtain all the information of the tabular model, and a PBIT file is provided. You only need to enter the tabular model instance name and database name to establish Power BI model analysis. This is a good idea because it uses PBI’s existing interactive capabilities and dynamic There is nothing better than data refresh to analyze the model, so I plan to learn from and optimize this PBIT, and then transform it into a PBID external tool to make it faster and more convenient to run.

About Model Analyzer

Model Analyzer's full name is Power BI Model Analyzer, which is Power BI model analyzer. You only need to run the installer and then run it from the Power BI Desktop external toolbar to open a dedicated PBIT file. In the old version provided by Meagan Longoria , you need to query the instance and database names yourself (through DAX Studio or other methods) and enter them manually, but here, the PBIT will obtain these parameter values ​​​​by itself. You only need to select the corresponding instance name and database name, and click Load. Can. Power BI will run multiple DMV queries, including models, tables, columns, KPIs, measures and other data. Some very commonly used modules, such as perspectives, calculation groups and other modules are not included for the time being and may be included in the advanced version in the future. middle.

Download and install

Click here to go to the Github page, download the Power BI Model Analyzer.zip file, unzip it and run it to install it with one click.

Insert image description here

If a stable version is released in the future, it may be released on the Business Ops platform for overseas users to install. I will further evaluate it with PowerBI.Tips.

Precautions before use

As for the current version (1.0.0 beta), users need to make the following settings in Power BI Desktop [Always ignore privacy level settings]:

Insert image description here

Otherwise, the following error will occur when loading data:

Insert image description here

In addition, tabular models created using the PBID-RS version cannot be connected at the moment.

Graphic demonstration

Like DAX Beautifier , using this tool is extremely simple. After installation, open the PBIX report file you want to analyze, and then click the chart on the external toolbar to run it.

Insert image description here

After running the PBI Model Analyzer, a PBIT file will be opened and the following form will pop up. The file will automatically obtain the instance name and database name of the tabular model in the most recently modified (usually running) PBIX file (as mentioned above). ), which takes about 10 seconds to load.
Insert image description here

Just select the automatically obtained parameter value in the drop-down box.

Insert image description here

When connecting for the first time, you need to run multiple queries:

Insert image description here

After loading is complete, you can view and analyze all model information in your PBI report.

Insert image description here

If you want to export model information to Excel or a database for further analysis, you can use DAX Studio to connect this model and use the data export feature.

subsequent versions

This tool still has a lot of room for optimization, and its functions can also be expanded a lot. Currently, the model analysis of the test version is run in the form of [Analyst in Power BI]. In the future, other functions such as one-click export of model information to Excel will be considered. It is not difficult for me to implement these functions, it is just a matter of time. The main reason is that the audience group of this tool is indeed small. Perhaps less than 10% of all PBI developers will need it, but among these people, especially Among the groups I know in the PBI international community, the demand for model recording is very frequent. This is why I tried to develop this tool. However, it is still unknown whether the tool will continue to be optimized in the future. This completely depends on the needs of the community.

Guess you like

Origin blog.csdn.net/qq_44794714/article/details/110116557