<?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: Could someone help convert this Excel formula to DAX? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Could-someone-help-convert-this-Excel-formula-to-DAX/m-p/773348#M3772</link>
    <description>No worries. Thanks :)&lt;BR /&gt;&lt;BR /&gt;When there's a will, there's always a way. As they say.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;Darek</description>
    <pubDate>Thu, 22 Aug 2019 16:10:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-22T16:10:29Z</dc:date>
    <item>
      <title>Could someone help convert this Excel formula to DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Could-someone-help-convert-this-Excel-formula-to-DAX/m-p/756484#M3026</link>
      <description>&lt;P&gt;Here is the Excel formula is question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=SUMPRODUCT(--(YEAR(TrackingSheet!$E$5:$E$133)=YEAR(C23)),--(TrackingSheet!$E$5:$E$133&amp;lt;&amp;gt;""),--(TrackingSheet!$H$5:$H$133="Yes"),--(TrackingSheet!$G$5:$G$133&amp;lt;&amp;gt;"Relapsing"),--(MONTH(TrackingSheet!$E$5:$E$133)=MONTH(C23)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I am not familiar with the SUMPRODUCT formular and the double-negative signs (or their purpose). If someone could be so kind as to explain the structure of the formula to me and the purpose of the double-negative, I would appreciate it for converting future formulas to DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks :)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 14:53:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Could-someone-help-convert-this-Excel-formula-to-DAX/m-p/756484#M3026</guid>
      <dc:creator>isohawon</dc:creator>
      <dc:date>2019-08-02T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone help convert this Excel formula to DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Could-someone-help-convert-this-Excel-formula-to-DAX/m-p/756600#M3035</link>
      <description>&lt;P&gt;-- turns logical values into numbers. --(TRUE) = 1, --(FALSE) = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=SUMPRODUCT(
-- (        YEAR(
            TrackingSheet!$E$5:$E$133
        ) =
        YEAR(
            C23
        ) ),
-- ( TrackingSheet!$E$5:$E$133 &amp;lt;&amp;gt; "" ),
-- ( TrackingSheet!$H$5:$H$133 = "Yes" ),
-- ( TrackingSheet!$G$5:$G$133 &amp;lt;&amp;gt; "Relapsing" ),
-- (        MONTH(
            TrackingSheet!$E$5:$E$133
        ) =
        MONTH(
            C23
        ) )
)&lt;/PRE&gt;&lt;P&gt;Basically, the formula says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;take the year from C23 -&amp;gt; Y = year(C23)&lt;/LI&gt;&lt;LI&gt;mark the cells in TrackingSheet!$E$5:$E$133 as TRUE when the year of the value is = Y&lt;/LI&gt;&lt;LI&gt;mark the cells in&amp;nbsp;TrackingSheet!$E$5:$E$133 as TRUE when they are not equal to "" (this condition is redundant in view of the one above)&lt;/LI&gt;&lt;LI&gt;mark the cells in&amp;nbsp;TrackingSheet!$H$5:$H$133 as TRUE when they have "Yes" in them&lt;/LI&gt;&lt;LI&gt;mark the cells in&amp;nbsp;TrackingSheet!$G$5:$G$133 as TRUE when they don't have "relapsing" in them&lt;/LI&gt;&lt;LI&gt;mark the cells in&amp;nbsp;TrackingSheet!$E$5:$E$133 as TRUE if the month = month( C23 )&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;SUMPRODUCT then multiplies the columns of logicals (turned into 1 and 0) row by row and then sums it up. Thus you get a count of rows where the above conditions are all TRUE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 17:09:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Could-someone-help-convert-this-Excel-formula-to-DAX/m-p/756600#M3035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-02T17:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone help convert this Excel formula to DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Could-someone-help-convert-this-Excel-formula-to-DAX/m-p/773206#M3768</link>
      <description>&lt;P&gt;By the way, I got really busy at work and then forgot to formally thank you for helping me with this. It was so incredibly helpful to help me understand and convert the formula to DAX. So, thank you. :)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 14:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Could-someone-help-convert-this-Excel-formula-to-DAX/m-p/773206#M3768</guid>
      <dc:creator>isohawon</dc:creator>
      <dc:date>2019-08-22T14:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Could someone help convert this Excel formula to DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Could-someone-help-convert-this-Excel-formula-to-DAX/m-p/773348#M3772</link>
      <description>No worries. Thanks :)&lt;BR /&gt;&lt;BR /&gt;When there's a will, there's always a way. As they say.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;Darek</description>
      <pubDate>Thu, 22 Aug 2019 16:10:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Could-someone-help-convert-this-Excel-formula-to-DAX/m-p/773348#M3772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-22T16:10:29Z</dc:date>
    </item>
  </channel>
</rss>

