<?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: Can I use and &amp;amp; or in dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711046#M82361</link>
    <description>&lt;P&gt;Why do you add separated condition?..&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2016_FeedCodeCount = CALCUL&lt;/SPAN&gt;&lt;SPAN&gt;ATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[CreatedDate]),(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[CreatedDate] &amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2017&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),Query3[LastUpdated] &amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2015&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))) ||&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;&lt;STRONG&gt;AND(NOT(Query3[IsActive]),AND(Query3[CreatedDate] &amp;lt;&amp;nbsp;DATE(2017,1,1),Query3[LastUpdated] &amp;gt;&amp;nbsp;DATE(2017,12,31))))&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 23:16:33 GMT</pubDate>
    <dc:creator>technolog</dc:creator>
    <dc:date>2022-08-18T23:16:33Z</dc:date>
    <item>
      <title>Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710813#M82330</link>
      <description>&lt;P&gt;I've got a sql query that I need to recreate using dax if possible. I've tried a million different things and just can't figure it out. I have a table that includes the created date, last updated date, isactive field and a name field. I'm wanting a count of the names for different years that were active at the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where&lt;BR /&gt;(pf.CreatedDate &amp;lt; '01-01-2017'&lt;BR /&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;BR /&gt;pf.LastUpdated &amp;gt; '01-01-2015'&lt;BR /&gt;&lt;STRONG&gt;and&lt;/STRONG&gt; pf.IsActive = 1)&lt;BR /&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;BR /&gt;(pf.CreatedDate &amp;lt; '01-01-2017'&lt;BR /&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;BR /&gt;pf.LastUpdated &amp;gt; '12-31-2017'&lt;BR /&gt;&lt;STRONG&gt;and&lt;/STRONG&gt; pf.IsActive = 0)&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 20:19:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710813#M82330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T20:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710917#M82338</link>
      <description>&lt;P&gt;You can use&lt;/P&gt;
&lt;P&gt;OR( AND(cond1, cond2), AND (cond3, cond4) )&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 20:56:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710917#M82338</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-18T20:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710937#M82341</link>
      <description>&lt;P&gt;Unfortunately when I do that it won't allow be to chose anything other that previous measures I have created.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:15:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710937#M82341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T21:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710962#M82342</link>
      <description>&lt;P&gt;Well I&amp;nbsp; figured out how to get the conditions I want but the and only takes 2 conditions and I have 3 on of which is a true/false.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:25:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710962#M82342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T21:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710963#M82343</link>
      <description>&lt;P&gt;Do you try using?&lt;BR /&gt;CALCULATE ( COUNT ( name ) , FILTER( [&lt;SPAN&gt;pf&lt;/SPAN&gt;],&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(pf.CreatedDate &amp;lt; '01-01-2017'&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;pf.LastUpdated &amp;gt; '01-01-2015'&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;pf.IsActive = 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;||&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;(pf.CreatedDate &amp;lt; '01-01-2017'&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;pf.LastUpdated &amp;gt; '12-31-2017'&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;pf.IsActive = 0)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:26:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710963#M82343</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-18T21:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710967#M82345</link>
      <description>&lt;P&gt;Also you can try&lt;/P&gt;
&lt;P&gt;AND( cond1, AND(cond2, cond3) )&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;cond1 &amp;amp;&amp;amp; cond2 &amp;amp;&amp;amp; cond3&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:27:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710967#M82345</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-18T21:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710976#M82346</link>
      <description>&lt;P&gt;This one gave me the error of DAX comparison operations do not support comparing values of type True/False with values of type integer. That did get me a lot closer though. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:34:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710976#M82346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T21:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710989#M82347</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This one also gave me the error of DAX comparison operations do not support comparing values of type True/False with values of type integer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:40:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710989#M82347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T21:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710996#M82348</link>
      <description>&lt;P&gt;Also you need change&amp;nbsp;&lt;SPAN&gt;'01-01-2017' to DATE(2017, 1, 1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710996#M82348</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-18T21:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710997#M82349</link>
      <description>&lt;P&gt;And&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;pf.IsActive = 0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOT(pf.IsActive)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:44:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2710997#M82349</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-18T21:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711001#M82350</link>
      <description>&lt;P&gt;I changed them all to DATE(2017,1,1) but still got the True/False error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:52:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711001#M82350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T21:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711005#M82351</link>
      <description>&lt;P&gt;What about the pf.IsActive = 1?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:55:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711005#M82351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T21:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711013#M82353</link>
      <description>&lt;P&gt;You can write&amp;nbsp;just&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;pf.IsActive&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:59:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711013#M82353</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-18T21:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711016#M82354</link>
      <description>&lt;P&gt;That gives me the error Too few arguments were passed to the AND function.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 22:03:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711016#M82354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T22:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711020#M82355</link>
      <description>&lt;P&gt;Figured it out. I now have a number and no errors.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt; Thank you so very very very much.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 22:05:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711020#M82355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T22:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711028#M82357</link>
      <description>&lt;P&gt;Thank you Technolog for your help.&lt;/P&gt;&lt;P&gt;Here is the solution thanks to you. As a newbie I really appreciate your help more than you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2016_FeedCodeCount = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[CreatedDate]),Query3[IsActive],(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[CreatedDate] &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2017&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),Query3[LastUpdated] &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2015&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))) || &lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[IsActive]),&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[CreatedDate] &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2017&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),Query3[LastUpdated] &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2017&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;31&lt;/SPAN&gt;&lt;SPAN&gt;))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Aug 2022 22:10:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711028#M82357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T22:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711035#M82358</link>
      <description>&lt;P&gt;Well I said it worked but it didn't. It seems to be ignoring the part after the || and giving me the wrong count.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 22:21:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711035#M82358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T22:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711037#M82359</link>
      <description>&lt;P&gt;Could you provide more detail information?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 22:25:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711037#M82359</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-18T22:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711039#M82360</link>
      <description>&lt;P&gt;Here is what I have and the bold &amp;amp; underlined part is being ignored and I'm getting the count as if only the first part before || is counting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2016_FeedCodeCount =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[CreatedDate]),Query3[IsActive],(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[CreatedDate] &amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2017&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),Query3[LastUpdated] &amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2015&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))) ||&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;&lt;STRONG&gt;AND(NOT(Query3[IsActive]),AND(Query3[CreatedDate] &amp;lt;&amp;nbsp;DATE(2017,1,1),Query3[LastUpdated] &amp;gt;&amp;nbsp;DATE(2017,12,31))))&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 22:29:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711039#M82360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T22:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use and &amp; or in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711046#M82361</link>
      <description>&lt;P&gt;Why do you add separated condition?..&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2016_FeedCodeCount = CALCUL&lt;/SPAN&gt;&lt;SPAN&gt;ATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[CreatedDate]),(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(Query3[CreatedDate] &amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2017&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),Query3[LastUpdated] &amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2015&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))) ||&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;&lt;STRONG&gt;AND(NOT(Query3[IsActive]),AND(Query3[CreatedDate] &amp;lt;&amp;nbsp;DATE(2017,1,1),Query3[LastUpdated] &amp;gt;&amp;nbsp;DATE(2017,12,31))))&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 23:16:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-I-use-and-amp-or-in-dax/m-p/2711046#M82361</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-08-18T23:16:33Z</dc:date>
    </item>
  </channel>
</rss>

