<?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 with DAX code, performance problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1597502#M32011</link>
    <description>&lt;P&gt;I have found the problem in the switch statement.&lt;BR /&gt;After changing the switch statement to this, it is working.&lt;BR /&gt;Metric to show:=&lt;BR /&gt;SWITCH(&lt;BR /&gt;SELECTEDVALUE(Dynamic_Metrics[Metric Name], "All/No selected"),&lt;BR /&gt;"# of rows with Police dispatched by",[# of rows with Police dispatched by],&lt;BR /&gt;"# of rows with Fire dispatched by",[# of rows with Fire dispatched by],&lt;BR /&gt;"# of rows with Guard dispatched by",[# of rows with Guard dispatched by],&lt;BR /&gt;"# of rows with Guard dispatched cancelled by",[# of rows with Guard dispatched cancelled by],&lt;BR /&gt;"# of rows with Sms sent by",[# of rows with Sms sent by],&lt;BR /&gt;"# of rows with First ACK by",[# of rows with First ACK by],&lt;BR /&gt;[# of rows with Guard dispatched by]&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 15:46:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-13T15:46:11Z</dc:date>
    <item>
      <title>Need help with DAX code, performance problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1582313#M31622</link>
      <description>&lt;P&gt;See the description of the problem below, "Metric_to_Show" in the red box.&lt;BR /&gt;As you can see I have one solution that is working fast if I use the actual metric,&lt;BR /&gt;but when I replace the actual metric with my dynamic selection it is slow.&lt;/P&gt;&lt;P&gt;So my Q is why is it not working with&amp;nbsp;’Dynamic_Metrics’[Metric to show]?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:14:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1582313#M31622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-05T15:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code, performance problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1582420#M31629</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the pbix? Otherwise:&lt;/P&gt;
&lt;P&gt;Can you show the code for [Selected Metric Name]?&lt;/P&gt;
&lt;P&gt;Can you show where you are using the measure (what visual, what fields are in the visual and the relevant tables)?&lt;/P&gt;
&lt;P&gt;What exactly do you mean by "keep my filters"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 16:38:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1582420#M31629</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-05T16:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code, performance problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1582918#M31648</link>
      <description>&lt;P&gt;Sorry, I can't share the pbix.&lt;BR /&gt;The model is build in SSAS also.&lt;BR /&gt;But I can share the code&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;BR /&gt;Selected Metric Name:= SELECTEDVALUE(Dynamic_Metrics[Metric Name], "No selected")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And I select the Metric Name from a slicer in the pbix.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 21:50:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1582918#M31648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-05T21:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code, performance problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1596170#M31989</link>
      <description>&lt;P&gt;I have created a testfile, but I can't find how to upload it here. Do you know how to do that?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 07:55:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1596170#M31989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-13T07:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code, performance problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1596176#M31990</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to share the URL to the file hosted elsewhere: Dropbox, Onedrive... or just upload the file to a site like &lt;A href="http://www.tinyupload.com" target="_self"&gt;tinyupload.com&lt;/A&gt; (no sign-up required).&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 07:57:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1596176#M31990</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-13T07:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code, performance problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1597502#M32011</link>
      <description>&lt;P&gt;I have found the problem in the switch statement.&lt;BR /&gt;After changing the switch statement to this, it is working.&lt;BR /&gt;Metric to show:=&lt;BR /&gt;SWITCH(&lt;BR /&gt;SELECTEDVALUE(Dynamic_Metrics[Metric Name], "All/No selected"),&lt;BR /&gt;"# of rows with Police dispatched by",[# of rows with Police dispatched by],&lt;BR /&gt;"# of rows with Fire dispatched by",[# of rows with Fire dispatched by],&lt;BR /&gt;"# of rows with Guard dispatched by",[# of rows with Guard dispatched by],&lt;BR /&gt;"# of rows with Guard dispatched cancelled by",[# of rows with Guard dispatched cancelled by],&lt;BR /&gt;"# of rows with Sms sent by",[# of rows with Sms sent by],&lt;BR /&gt;"# of rows with First ACK by",[# of rows with First ACK by],&lt;BR /&gt;[# of rows with Guard dispatched by]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 15:46:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-performance-problem/m-p/1597502#M32011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-13T15:46:11Z</dc:date>
    </item>
  </channel>
</rss>

