<?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: Total of &amp;quot;visible&amp;quot; values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471624#M27945</link>
    <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create 2 measures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Difference = 
IF(MAX('Table'[Sales TY]) = BLANK(), BLANK() ,SUM('Table'[Sales LY]) - SUM('Table'[Sales TY]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DIF = SUMX('Table',[Difference])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 11:20:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-03T11:20:43Z</dc:date>
    <item>
      <title>Total of "visible" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471476#M27935</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got a table with Sales LY and this year sales looking like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Month&amp;nbsp; &amp;nbsp; &amp;nbsp;Sales LY&amp;nbsp; &amp;nbsp; &amp;nbsp;Sales TY&amp;nbsp; &amp;nbsp; &amp;nbsp;DIF&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;130&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-20&lt;/P&gt;&lt;P&gt;Mar&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-150&lt;/P&gt;&lt;P&gt;Apr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Total&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;550&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;330&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-220&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made the "DIF" column only calculate the difference when Sales TY is not blank. However, the total row calculates the total difference of all the rows, including those with blank Sales TY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I only show the total for the "visible" values in the table? So, the above table should look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Month&amp;nbsp; &amp;nbsp; &amp;nbsp;Sales LY&amp;nbsp; &amp;nbsp; &amp;nbsp;Sales TY&amp;nbsp; &amp;nbsp; &amp;nbsp;DIF&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;150&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;130&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-20&lt;/P&gt;&lt;P&gt;Mar&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-150&lt;/P&gt;&lt;P&gt;Apr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Total&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;550&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;330&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-120&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 10:17:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471476#M27935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T10:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Total of "visible" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471532#M27938</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , assuming these are measures [Sales TY] , [Sales LY]&lt;/P&gt;
&lt;P&gt;New measures like this should work&lt;/P&gt;
&lt;P&gt;if(isblank([Sales TY]), blank(), [Sales TY] -[Sales LY])&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 10:56:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471532#M27938</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-03T10:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Total of "visible" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471537#M27939</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, they are not measures...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe its easier if i somehow make them into a measure?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 11:00:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471537#M27939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T11:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Total of "visible" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471569#M27942</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;if(isblank(sum(Table[Sales TY])), blank(), Sum(Table[Sales TY]) -sum(Table[Sales LY]))&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 11:04:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471569#M27942</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-03T11:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Total of "visible" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471624#M27945</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create 2 measures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Difference = 
IF(MAX('Table'[Sales TY]) = BLANK(), BLANK() ,SUM('Table'[Sales LY]) - SUM('Table'[Sales TY]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DIF = SUMX('Table',[Difference])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 11:20:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471624#M27945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T11:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Total of "visible" values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471825#M27947</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmm... that gives me the same result as the "Dif" column.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 13:10:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-of-quot-visible-quot-values/m-p/1471825#M27947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T13:10:32Z</dc:date>
    </item>
  </channel>
</rss>

