<?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: Need help to understand why query plan change in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-understand-why-query-plan-change/m-p/1678995#M34426</link>
    <description>&lt;P&gt;in your case you don't need to use selectedvalue since you are already in the filter context and are not doing any context transition in your measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You use nested measures, however.&amp;nbsp; If you are concerned about performance then you will want to rewrite this to avoid calling one measure from another. In such a scenario it is better to be explicit and inline all the code.&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2021 03:38:36 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-02-21T03:38:36Z</dc:date>
    <item>
      <title>Need help to understand why query plan change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-understand-why-query-plan-change/m-p/1678723#M34416</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm really need your help. I have spent alot of hours trying to get the same query plan for this.&lt;BR /&gt;I am using a slicer in Power BI to select the metric I want to analyze.&lt;BR /&gt;But the query plan will totaly change. It will generate a full table scan on one realy big table.&lt;BR /&gt;In the normal case I use the switch statement but to minimize to&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 17:42:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-understand-why-query-plan-change/m-p/1678723#M34416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-20T17:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to understand why query plan change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-understand-why-query-plan-change/m-p/1678995#M34426</link>
      <description>&lt;P&gt;in your case you don't need to use selectedvalue since you are already in the filter context and are not doing any context transition in your measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You use nested measures, however.&amp;nbsp; If you are concerned about performance then you will want to rewrite this to avoid calling one measure from another. In such a scenario it is better to be explicit and inline all the code.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 03:38:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-understand-why-query-plan-change/m-p/1678995#M34426</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-21T03:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to understand why query plan change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-understand-why-query-plan-change/m-p/1679237#M34436</link>
      <description>&lt;P&gt;The reason for I'm digging in to this is the performance.&lt;BR /&gt;When I'm using&amp;nbsp;&lt;SPAN&gt;[# of rows with Police dispatched by] in a visual direct, the response is under 1 second.&lt;BR /&gt;&lt;/SPAN&gt;If I replace it with [&lt;SPAN&gt;Metric to show&lt;/SPAN&gt;] the response is ~15 seconds.&lt;BR /&gt;I thought it was almost the same, just a simple check before returning the same metric.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Metric to show = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Selected Metric Name],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"# of rows with Undefined",[# of rows with Undefined],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"# of rows with Incident Header]",[# of rows with Incident Header],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"# of rows with Police dispatched by",[# of rows with Police dispatched by],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BLANK()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 16:23:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-understand-why-query-plan-change/m-p/1679237#M34436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-21T16:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to understand why query plan change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-understand-why-query-plan-change/m-p/1679313#M34443</link>
      <description>&lt;P&gt;I don't understand how your last comment is related to your original issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you considered inlining the measure code?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 20:47:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-understand-why-query-plan-change/m-p/1679313#M34443</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-21T20:47:33Z</dc:date>
    </item>
  </channel>
</rss>

