<?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: Learning in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Learning/m-p/1035575#M13767</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try this measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;2019-20 ACTUAL Income EXCL 100 =
CALCULATE (
    [2019-20 Totals],
    FILTER (
        'BIGL_BSCC_DATA_181920',
        NOT ( BIGL_BSCC_DATA_181920[ACCT_CATEGORY] IN { "100" } )
    ),
    FILTER (
        'BIGL_GL_DATA_181920V2',
        'BIGL_GL_DATA_181920V2'[INCOME_EXP] IN { "ACTUAL Income" }
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If this is not working, please share sample dataset and logic of&amp;nbsp;&lt;SPAN&gt;[2019-20 Totals]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Appreciate with a kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 06:35:13 GMT</pubDate>
    <dc:creator>nandukrishnavs</dc:creator>
    <dc:date>2020-04-20T06:35:13Z</dc:date>
    <item>
      <title>Learning</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Learning/m-p/1035412#M13761</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am experimenting with the following but finding that the filter criteria is not working as i expected but not sure why from what i have read.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2019-20 ACTUAL Income EXCL 100 =&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[2019-20 Totals], &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NOT BIGL_BSCC_DATA_181920[ACCT_CATEGORY] IN {"100"},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'BIGL_GL_DATA_181920V2'[INCOME_EXP] IN { "ACTUAL Income" }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The goal is to sum the values but exclude 100 have i done something wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Apr 2020 05:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Learning/m-p/1035412#M13761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-20T05:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Learning</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Learning/m-p/1035575#M13767</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try this measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;2019-20 ACTUAL Income EXCL 100 =
CALCULATE (
    [2019-20 Totals],
    FILTER (
        'BIGL_BSCC_DATA_181920',
        NOT ( BIGL_BSCC_DATA_181920[ACCT_CATEGORY] IN { "100" } )
    ),
    FILTER (
        'BIGL_GL_DATA_181920V2',
        'BIGL_GL_DATA_181920V2'[INCOME_EXP] IN { "ACTUAL Income" }
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If this is not working, please share sample dataset and logic of&amp;nbsp;&lt;SPAN&gt;[2019-20 Totals]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Appreciate with a kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 06:35:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Learning/m-p/1035575#M13767</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-04-20T06:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Learning</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Learning/m-p/1035864#M13777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="32333" data-lia-user-login="nandukrishnavs" class="lia-mention lia-mention-user"&gt;nandukrishnavs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A better formulation of your measure is this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2019-20 ACTUAL Income EXCL 100 =
	CALCULATE (
	    [2019-20 Totals],
	    KEEPFILTERS(
	    	BIGL_BSCC_DATA_181920[ACCT_CATEGORY] &amp;lt;&amp;gt; "100"
	    ),
	    KEEPFILTERS(
	    	'BIGL_GL_DATA_181920V2'[INCOME_EXP]  = "ACTUAL Income"
	    )
	)&lt;/LI-CODE&gt;
&lt;P&gt;It's better in 2 ways. First, it's a bit less to type. Second, it's more performant for 2 reasons:&lt;/P&gt;
&lt;P&gt;1) you should not put a full table as a filter in CALCULATE if there's no real need (there seldom is),&lt;/P&gt;
&lt;P&gt;2) KEEPFILTERS is faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the golden rule of DAX says: &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;Never filter a table when you can filter a column&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All these things can be discovered through &lt;A href="http://www.sqlbi.com" target="_blank"&gt;www.sqlbi.com&lt;/A&gt;, the site by &lt;EM&gt;The Italians&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 08:37:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Learning/m-p/1035864#M13777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-20T08:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Learning</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Learning/m-p/1035978#M13783</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 09:18:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Learning/m-p/1035978#M13783</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-04-20T09:18:23Z</dc:date>
    </item>
  </channel>
</rss>

