<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Optimize Power BI Report with Model Best Practice Analyzer and Vertipaq Analyzer using Semantic Link in Notebook Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Notebook-Gallery/Optimize-Power-BI-Report-with-Model-Best-Practice-Analyzer-and/m-p/4873791#M86</link>
    <description>&lt;P&gt;Do you have any scripts or semantic lab scripts to fix all of the mentioned errors automatically&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Nov 2025 03:49:30 GMT</pubDate>
    <dc:creator>VinodAdepu</dc:creator>
    <dc:date>2025-11-13T03:49:30Z</dc:date>
    <item>
      <title>Optimize Power BI Report with Model Best Practice Analyzer and Vertipaq Analyzer using Semantic Link</title>
      <link>https://community.fabric.microsoft.com/t5/Notebook-Gallery/Optimize-Power-BI-Report-with-Model-Best-Practice-Analyzer-and/m-p/4803838#M53</link>
      <description>&lt;P class=""&gt;Every Power BI Developer pays attention to the underlying performance of their dashboard beyond just churning out reports. This is why adhering to best practices rules should no longer feel like a task, irrespective of your level of experience with Power BI. &lt;A href="https://github.com/microsoft/semantic-link-labs" target="_self"&gt;Semantic Link Labs&lt;/A&gt; is here to get the job done.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;If you are reading about Semantic Link Labs for the first time, you can read my demo introductory article &lt;A href="https://www.linkedin.com/pulse/how-use-semantic-link-labs-microsoft-fabric-notebook-python-adebayo-hmyxe" target="_self"&gt;&lt;STRONG&gt;here&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;. &lt;/STRONG&gt;This is a Python library developed by &lt;A href="https://www.linkedin.com/in/michaelkovalsky/" target="_self"&gt;Michael Kovalsky&lt;/A&gt; that makes this process easier with just a few lines of code in Microsoft Fabric Notebook.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;H3&gt;Our Use&amp;nbsp;Case:&lt;/H3&gt;&lt;P class=""&gt;David, A Power BI developer at the AMA enterprise, got several complaints from colleagues that the Sales and Return dashboards take too long to load and sometimes time out. David thought of many reasons why this could have happened, but he wants to start by using the &lt;STRONG&gt;Model Best Practice Analyser&lt;/STRONG&gt; Method and &lt;STRONG&gt;Vertipaq Analyzer &lt;/STRONG&gt;to investigate the issue.&lt;/P&gt;&lt;P class=""&gt;Before this day, David knew he could use an external tool like Tabular Editor for this task. But he recently found out about a new Python library called Semantic Link Lab using Microsoft Fabric Notebook that can help him figure out this issue with the report with just a&lt;STRONG&gt; few lines of code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;The sample Sales &amp;amp; Returns Sample v201912 dashboard use for this demo is available for download &lt;A href="https://github.com/microsoft/powerbi-desktop-samples/blob/main/Sample%20Reports/Sales%20%26%20Returns%20Sample%20v201912.pbix" target="_self"&gt;&lt;STRONG&gt;here&lt;/STRONG&gt;&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;You can also download this Microsoft Fabric Notebook used for this Demo &lt;A href="https://github.com/Musili-Adebayo/-Musili-Adebayo-fabric_day_project_dashboard/blob/main/powerbi_report_notebook.ipynb" target="_self"&gt;here.&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;H3&gt;David’s Task:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Perform a Model Best Practice Analyser (BPA) on the Semantic Model of your Power BI report.&lt;/LI&gt;&lt;LI&gt;Perform a Vertipaq Analyzer on your semantic model.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Let’s get started:&lt;/P&gt;&lt;P class=""&gt;Open your Notebook In Microsoft Fabric, let's investigate what went wrong.&lt;/P&gt;&lt;P class=""&gt;Before we get started, we must make sure we have the Semantic Link Labs library installed as well as the other necessary libraries.&lt;/P&gt;&lt;PRE&gt;#Install the Semantic link Labs library in your Fabric notebook

%pip install semantic-link-labs&lt;/PRE&gt;&lt;P class=""&gt;After that, we will also be installing the necessary libraries in your notebook.&lt;/P&gt;&lt;PRE&gt;### Once installed, run this code to import the library into your notebook

import sempy_labs as labs
from sempy_labs import report as rep
from sempy_labs.report import ReportWrapper&lt;/PRE&gt;&lt;H2&gt;1. Performance Model Best Practice Analyzer (BPA) on a Semantic Model report.&lt;/H2&gt;&lt;P class=""&gt;Model Best Practice Analyzer uses best practice rules to scan your semantic models for bad DAX code, improper formatting and usage of data types, inappropriate relationships, and potentially risky calculation patterns that should be fixed in your report.&lt;/P&gt;&lt;PRE&gt;#Model Best Practice Analyzer

import sempy_labs as labs

# Enter the name or ID of your semantic model
dataset = 'Sales &amp;amp; Returns Sample v201912' 

# Enter the name or ID of the workspace in which the semantic model # resides
workspace = 'Fabricday' 

labs.run_model_bpa(dataset=dataset, workspace=workspace)&lt;/PRE&gt;&lt;P class=""&gt;&lt;STRONG&gt;When you toggle on the results below, we can see that we have:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;16&amp;nbsp;&lt;/STRONG&gt;DAX expression with high rule violation severity, &lt;STRONG&gt;10&lt;/STRONG&gt;&amp;nbsp;Medium severity, report pages with other details in the Sales &amp;amp; Return Sample v201912 Dashboard.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;64 Formatting&lt;/STRONG&gt;&amp;nbsp;Medium rule violation severity and &lt;STRONG&gt;41 &lt;/STRONG&gt;on low-level/hints severity.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;146 &lt;/STRONG&gt;Maintenance low-level/hints rule violation severity and &lt;STRONG&gt;10&lt;/STRONG&gt; Medium rule violation severity.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;46&amp;nbsp;&lt;/STRONG&gt;Performance Medium rule violation severity.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;&lt;H2&gt;2. Perform a Vertipaq Analyzer on your Semantic Model.&lt;/H2&gt;&lt;PRE&gt;import sempy_labs as labs

# Enter the name or ID of your semantic model
dataset = 'Sales &amp;amp; Returns Sample v201912' 

# Enter the name or ID of the workspace in which the semantic model # resides
workspace = 'Fabricday' 

#x = labs.vertipaq_analyzer(dataset=dataset, workspace=workspace)

# Setting export='table' will export the results to delta tables in  # the lakehouse attached to the notebook
x = labs.vertipaq_analyzer(dataset=dataset, workspace=workspace, export='table') 

# Setting export='zip' will export the results to a .zip file in the lakehouse attached to the notebook.
# x = labs.vertipaq_analyzer(dataset=dataset, workspace=workspace, export='zip') &lt;/PRE&gt;&lt;P class=""&gt;The result below shows that the Vertipaq Analyzer Analysis of the Sales &amp;amp; Returns Sample v201912 has been exported to a delta table in my Lakehouse.&lt;/P&gt;&lt;P class=""&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;A snapshot of the Vertipaq Analyzer in my Lakehouse. This shows the Vertipaq Analyzer columns, hierarchies, tables, model, partitions, relationships and tables which can be visualize to understand the semantic model performances.&lt;/P&gt;&lt;DIV class=""&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;H2&gt;Conclusion&lt;/H2&gt;&lt;P class=""&gt;If you ever have a slow Power BI Dashboard that takes time to load, and you want to understand the reason for the slow performance. You can download the Microsoft Fabric Notebook used for this optimisation and enhancement Power BI report with Semantic Link Labs &lt;A href="https://github.com/Musili-Adebayo/-Musili-Adebayo-fabric_day_project_dashboard/blob/main/powerbi_report_notebook.ipynb" target="_self"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;References&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Semantic Link Labs Git Hub Repository by Michael Kovalsky: &lt;STRONG&gt;&lt;A href="https://github.com/microsoft/semantic-link-labs" target="_blank" rel="noopener"&gt;https://github.com/microsoft/semantic-link-labs&lt;/A&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;Feel free to connect with me via my socials below if you want to discuss further.&lt;/P&gt;&lt;P class=""&gt;LinkedIn: &lt;A href="https://www.linkedin.com/in/musili-adebayo/" target="_blank" rel="noopener"&gt;Musili Adebayo&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;Twitter: &lt;A href="https://twitter.com/Musili_Adebayo" target="_self"&gt;Musili_Adebayo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="msgUrl hidden"&gt;https%3A%2F%2Fgithub.com%2FMusili-Adebayo%2F-Musili-Adebayo-fabric_day_project_dashboard%2Fblob%2Fmain%2Fpowerbi_report_notebook.ipynb&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 13:47:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Notebook-Gallery/Optimize-Power-BI-Report-with-Model-Best-Practice-Analyzer-and/m-p/4803838#M53</guid>
      <dc:creator>Musili-Adebayo</dc:creator>
      <dc:date>2025-09-17T13:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Power BI Report with Model Best Practice Analyzer and Vertipaq Analyzer using Semantic Link</title>
      <link>https://community.fabric.microsoft.com/t5/Notebook-Gallery/Optimize-Power-BI-Report-with-Model-Best-Practice-Analyzer-and/m-p/4805580#M57</link>
      <description>&lt;P&gt;Excellent&lt;/P&gt;</description>
      <pubDate>Sat, 23 Aug 2025 09:47:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Notebook-Gallery/Optimize-Power-BI-Report-with-Model-Best-Practice-Analyzer-and/m-p/4805580#M57</guid>
      <dc:creator>ahmedoye</dc:creator>
      <dc:date>2025-08-23T09:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Power BI Report with Model Best Practice Analyzer and Vertipaq Analyzer using Semantic Link</title>
      <link>https://community.fabric.microsoft.com/t5/Notebook-Gallery/Optimize-Power-BI-Report-with-Model-Best-Practice-Analyzer-and/m-p/4824975#M72</link>
      <description>&lt;P&gt;Great work&lt;/P&gt;</description>
      <pubDate>Sat, 13 Sep 2025 07:27:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Notebook-Gallery/Optimize-Power-BI-Report-with-Model-Best-Practice-Analyzer-and/m-p/4824975#M72</guid>
      <dc:creator>gwarieta</dc:creator>
      <dc:date>2025-09-13T07:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Power BI Report with Model Best Practice Analyzer and Vertipaq Analyzer using Semantic Link</title>
      <link>https://community.fabric.microsoft.com/t5/Notebook-Gallery/Optimize-Power-BI-Report-with-Model-Best-Practice-Analyzer-and/m-p/4873791#M86</link>
      <description>&lt;P&gt;Do you have any scripts or semantic lab scripts to fix all of the mentioned errors automatically&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 03:49:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Notebook-Gallery/Optimize-Power-BI-Report-with-Model-Best-Practice-Analyzer-and/m-p/4873791#M86</guid>
      <dc:creator>VinodAdepu</dc:creator>
      <dc:date>2025-11-13T03:49:30Z</dc:date>
    </item>
  </channel>
</rss>

