<?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: Exclude missing values with calculate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-missing-values-with-calculate/m-p/3472025#M132585</link>
    <description>&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this solution of removing missing in calculate function (dax) doesn't seem to work for me. Perhap because the calculate is based on other measures which already have filter in them. I ended up just using simple If(isblank(variable), blank(), calculate(variable - variable2).&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 19:25:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-11T19:25:49Z</dc:date>
    <item>
      <title>Exclude missing values with calculate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-missing-values-with-calculate/m-p/721408#M1402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a formula like this to calculate percentages which can be changing dynamically with age, gender filters. But there are some 'DATA'[XXX] with missing values "." and I want to exclude those missing values in the denominator. How can I do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lai&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Percentage =&lt;BR /&gt;DIVIDE(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; calculate(sum('DATA'[Weight]),filter('DATA','DATA'[XXX]="Yes"&amp;amp;&amp;amp;'DATA'[Age]=[Selected_Age]&amp;amp;&amp;amp;'DATA'[Gender]=[Selected_Gender])),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; calculate(sum('DATA'[Weight]), allexcept('DATA','DATA'[Year],'DATA'[Age],'DATA'[Gender]))&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:23:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-missing-values-with-calculate/m-p/721408#M1402</guid>
      <dc:creator>weilai0521</dc:creator>
      <dc:date>2019-06-21T14:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude missing values with calculate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-missing-values-with-calculate/m-p/721739#M1409</link>
      <description>&lt;P&gt;add the&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA[XXX]&amp;lt;&amp;gt;"."&lt;/PRE&gt;
&lt;P&gt;to your denominator calculate, like this:&lt;/P&gt;
&lt;PRE&gt;DIVIDE (
    CALCULATE (
        SUM ( 'DATA'[Weight] ),
        FILTER (
            'DATA',
            'DATA'[XXX] = "Yes"
                &amp;amp;&amp;amp; 'DATA'[Age] = [Selected_Age]
                &amp;amp;&amp;amp; 'DATA'[Gender] = [Selected_Gender]
        )
    ),
    CALCULATE (
        SUM ( 'DATA'[Weight] ),
        ALLEXCEPT ( 'DATA', 'DATA'[Year], 'DATA'[Age], 'DATA'[Gender] ),
        DATA[XXX] &amp;lt;&amp;gt; "."
    )
)&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Jun 2019 09:55:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-missing-values-with-calculate/m-p/721739#M1409</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-06-22T09:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude missing values with calculate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-missing-values-with-calculate/m-p/727528#M1597</link>
      <description>&lt;P&gt;Thank you! This is very helpful!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 19:04:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-missing-values-with-calculate/m-p/727528#M1597</guid>
      <dc:creator>weilai0521</dc:creator>
      <dc:date>2019-06-28T19:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude missing values with calculate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-missing-values-with-calculate/m-p/3472025#M132585</link>
      <description>&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this solution of removing missing in calculate function (dax) doesn't seem to work for me. Perhap because the calculate is based on other measures which already have filter in them. I ended up just using simple If(isblank(variable), blank(), calculate(variable - variable2).&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 19:25:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-missing-values-with-calculate/m-p/3472025#M132585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-11T19:25:49Z</dc:date>
    </item>
  </channel>
</rss>

