<?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: Different DAX same answer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-DAX-same-answer/m-p/1410635#M26139</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; yes || and OR are doing the same thing here.&amp;nbsp; One is a Function and another one is an operator .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, you can use in&lt;/P&gt;
&lt;P&gt;CALCULATE (&lt;BR /&gt;[TotalHours],&lt;BR /&gt;FILTER (&lt;BR /&gt;EmployeeHours,&lt;BR /&gt;EmployeeHours[Code] in { "PICK" , "AXE" }&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to avoid or as far as possible&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Oct 2020 03:21:31 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-10-03T03:21:31Z</dc:date>
    <item>
      <title>Different DAX same answer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-DAX-same-answer/m-p/1410629#M26137</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still figuring out how to use DAX. I have come up with the same answer using what looks like different DAX.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is one better than the other or are they both essentially the same? I think the latter might be more efficent as it only filters a column. And what about OR and II, do these mean the same thing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;=CALCULATE (&lt;BR /&gt;[TotalHours],&lt;BR /&gt;FILTER (&lt;BR /&gt;EmployeeHours,&lt;BR /&gt;EmployeeHours[Code] = "PICK"&lt;BR /&gt;|| EmployeeHours[Code] = "AXE"&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;=CALCULATE (&lt;BR /&gt;[TotalHours],&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL ( EmployeeHours[Code] ),&lt;BR /&gt;OR (&lt;BR /&gt;EmployeeHours[Code] = "PICK",&lt;BR /&gt;EmployeeHours[Code] = "AXE"&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 02:26:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-DAX-same-answer/m-p/1410629#M26137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-03T02:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Different DAX same answer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-DAX-same-answer/m-p/1410635#M26139</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; yes || and OR are doing the same thing here.&amp;nbsp; One is a Function and another one is an operator .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, you can use in&lt;/P&gt;
&lt;P&gt;CALCULATE (&lt;BR /&gt;[TotalHours],&lt;BR /&gt;FILTER (&lt;BR /&gt;EmployeeHours,&lt;BR /&gt;EmployeeHours[Code] in { "PICK" , "AXE" }&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to avoid or as far as possible&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 03:21:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-DAX-same-answer/m-p/1410635#M26139</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-03T03:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Different DAX same answer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-DAX-same-answer/m-p/1410640#M26140</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; Thanks for that...Although now there is a third way to do this calculation &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 04:06:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-DAX-same-answer/m-p/1410640#M26140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-03T04:06:39Z</dc:date>
    </item>
  </channel>
</rss>

