<?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: Initial dax query run against a Fabric semantic model is taking time in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3757842#M146609</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="689093" data-lia-user-login="Sreeja_G" class="lia-mention lia-mention-user"&gt;Sreeja_G&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are many factors that can influence and we need to dive deeper to understand. Did you try using the Performance analyzer in Power BI to find out where DAX query spends lot of time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Check if it falls back to DirectQuery mode. Check this blog: &lt;A href="https://fabric.guru/controlling-direct-lake-fallback-behavior" target="_blank"&gt;https://fabric.guru/controlling-direct-lake-fallback-behavior&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Check if you have the correct capacity for running the queries and there are not so many parallel queries running corresponding to the capacity you use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to this, you can try prewarming your dataset by calling Power BI REST API for running queries which will fill the cache. Check this:&amp;nbsp;&lt;A href="https://www.tackytech.blog/how-to-pre-warm-your-power-bi-semantic-model-from-fabric-data-pipelines/#google_vignette" target="_blank"&gt;https://www.tackytech.blog/how-to-pre-warm-your-power-bi-semantic-model-from-fabric-data-pipelines/#google_vignette&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 11:56:50 GMT</pubDate>
    <dc:creator>govindarajan_d</dc:creator>
    <dc:date>2024-03-12T11:56:50Z</dc:date>
    <item>
      <title>Initial dax query run against a Fabric semantic model is taking time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3755250#M146517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initial dax query run against a Fabric semantic model is taking time. what could be the reason for it and any optimization that can be done while retrieving data from Fabric to avoid taking more time in the intial run.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 12:48:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3755250#M146517</guid>
      <dc:creator>Sreeja_G</dc:creator>
      <dc:date>2024-03-11T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Initial dax query run against a Fabric semantic model is taking time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3756073#M146536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="689093" data-lia-user-login="Sreeja_G" class="lia-mention lia-mention-user"&gt;Sreeja_G&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the DAX query use DirectLake mode or DirectQuery mode?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 18:29:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3756073#M146536</guid>
      <dc:creator>govindarajan_d</dc:creator>
      <dc:date>2024-03-11T18:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Initial dax query run against a Fabric semantic model is taking time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3757098#M146576</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="689093" data-lia-user-login="Sreeja_G" class="lia-mention lia-mention-user"&gt;Sreeja_G&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason for the initial DAX query may take the following points:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. When the first access semantic model or data is accessed, the initial loading time is slow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Data volume is too large.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Dax query statements are more complicated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the optimization of DAX, you can consider from the following aspects:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Use the latest version of Power BI to take advantage of the latest performance enhancements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Minimize the number of calculations and aggregations performed in your Dax queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Avoid using nested calculations in your Dax queries, as they can be resource-intensive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. If possible, use simpler Dax functions instead of more complex ones.&lt;/P&gt;
&lt;P&gt;Where appropriate, use calculated tables to precalculate frequently-used data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. Minimize the use of calculated columns, as they can slow down query processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more relevant information, please refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://zebrabi.com/guide/how-to-optimize-dax-queries-in-power-bi/#Tips_and_Tricks_for_Improving_Dax_Query_Performance" target="_blank"&gt;How to Optimize Dax Queries in Power BI - Zebra BI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have other questions, please contact me at any time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 06:39:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3757098#M146576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-12T06:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Initial dax query run against a Fabric semantic model is taking time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3757209#M146584</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="644992" data-lia-user-login="govindarajan_d" class="lia-mention lia-mention-user"&gt;govindarajan_d&lt;/a&gt;&amp;nbsp;it uses Direct Lake&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 07:20:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3757209#M146584</guid>
      <dc:creator>Sreeja_G</dc:creator>
      <dc:date>2024-03-12T07:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Initial dax query run against a Fabric semantic model is taking time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3757842#M146609</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="689093" data-lia-user-login="Sreeja_G" class="lia-mention lia-mention-user"&gt;Sreeja_G&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are many factors that can influence and we need to dive deeper to understand. Did you try using the Performance analyzer in Power BI to find out where DAX query spends lot of time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Check if it falls back to DirectQuery mode. Check this blog: &lt;A href="https://fabric.guru/controlling-direct-lake-fallback-behavior" target="_blank"&gt;https://fabric.guru/controlling-direct-lake-fallback-behavior&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Check if you have the correct capacity for running the queries and there are not so many parallel queries running corresponding to the capacity you use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to this, you can try prewarming your dataset by calling Power BI REST API for running queries which will fill the cache. Check this:&amp;nbsp;&lt;A href="https://www.tackytech.blog/how-to-pre-warm-your-power-bi-semantic-model-from-fabric-data-pipelines/#google_vignette" target="_blank"&gt;https://www.tackytech.blog/how-to-pre-warm-your-power-bi-semantic-model-from-fabric-data-pipelines/#google_vignette&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 11:56:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Initial-dax-query-run-against-a-Fabric-semantic-model-is-taking/m-p/3757842#M146609</guid>
      <dc:creator>govindarajan_d</dc:creator>
      <dc:date>2024-03-12T11:56:50Z</dc:date>
    </item>
  </channel>
</rss>

