<?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: How to ignore blanks when counting total percentage in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-ignore-blanks-when-counting-total-percentage/m-p/2463896#M66852</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mth6 %2 = calculate(Divide('Measures (2)'[Mth6 Vol],[Total Volume Excluding Zero and Latest],0), filter(Table,not(isblank([Mth6 Vol]))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mth6 %2 = calculate(Divide('Measures (2)'[Mth6 Vol],[Total Volume Excluding Zero and Latest],0), filter(values(Table[Month Year]),not(isblank([Mth6 Vol]))))&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 15:12:41 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-04-19T15:12:41Z</dc:date>
    <item>
      <title>How to ignore blanks when counting total percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-ignore-blanks-when-counting-total-percentage/m-p/2463829#M66846</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to calculate the overall total percentage it takes for account to be resolved. The measure used to calculate the volume for 6 month is using calculated column, which checks if there is a 6 month since the account went into debt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt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p;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As for some accounts the 6 month is not passed, the percentage column is null and overall total percentage shows incorrectly, 64.13% instead of 80's, see below.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Is there any way of ignoring these blanks, so the overall total will be correct?&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;</description>
      <pubDate>Tue, 19 Apr 2022 14:46:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-ignore-blanks-when-counting-total-percentage/m-p/2463829#M66846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-19T14:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore blanks when counting total percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-ignore-blanks-when-counting-total-percentage/m-p/2463896#M66852</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mth6 %2 = calculate(Divide('Measures (2)'[Mth6 Vol],[Total Volume Excluding Zero and Latest],0), filter(Table,not(isblank([Mth6 Vol]))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mth6 %2 = calculate(Divide('Measures (2)'[Mth6 Vol],[Total Volume Excluding Zero and Latest],0), filter(values(Table[Month Year]),not(isblank([Mth6 Vol]))))&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:12:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-ignore-blanks-when-counting-total-percentage/m-p/2463896#M66852</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-19T15:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore blanks when counting total percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-ignore-blanks-when-counting-total-percentage/m-p/2463955#M66860</link>
      <description>&lt;P&gt;Thank you. The second option worked for me. First one gave 100% for all the rows in the column.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:32:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-ignore-blanks-when-counting-total-percentage/m-p/2463955#M66860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-19T15:32:38Z</dc:date>
    </item>
  </channel>
</rss>

