<?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 Using both ALL and ALLEXCEPT together? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095177#M108567</link>
    <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;Simplistic table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;YEAR&lt;/TD&gt;&lt;TD&gt;COMPANY&lt;/TD&gt;&lt;TD&gt;OrderNumber&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[YEAR] is linked to a Calander Table which also has [YEAR]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have two slicers on the page, YEAR and COMPANY&lt;BR /&gt;&lt;BR /&gt;I am trying to create a measure to count the number of OrderNumbers ignoring the COMPANY but keeping the YEAR&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;NumberofOrders = 
CALCULATE
          (
          DISTINCTCOUNT('Table'[OrderNumber]),
          ALL('Table'),
          ALLEXCEPT('Calendar','Calendar'[YEAR])
           )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However this doesnt seem to work. Any ideas on how to correct?&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 13:19:58 GMT</pubDate>
    <dc:creator>BugmanJ</dc:creator>
    <dc:date>2023-02-23T13:19:58Z</dc:date>
    <item>
      <title>Using both ALL and ALLEXCEPT together?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095177#M108567</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;Simplistic table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;YEAR&lt;/TD&gt;&lt;TD&gt;COMPANY&lt;/TD&gt;&lt;TD&gt;OrderNumber&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[YEAR] is linked to a Calander Table which also has [YEAR]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have two slicers on the page, YEAR and COMPANY&lt;BR /&gt;&lt;BR /&gt;I am trying to create a measure to count the number of OrderNumbers ignoring the COMPANY but keeping the YEAR&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;NumberofOrders = 
CALCULATE
          (
          DISTINCTCOUNT('Table'[OrderNumber]),
          ALL('Table'),
          ALLEXCEPT('Calendar','Calendar'[YEAR])
           )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However this doesnt seem to work. Any ideas on how to correct?&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 13:19:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095177#M108567</guid>
      <dc:creator>BugmanJ</dc:creator>
      <dc:date>2023-02-23T13:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using both ALL and ALLEXCEPT together?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095196#M108568</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Since you want to remove one filter and keep the other try using REMOVEFILTER:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DAX:&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure 39 = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (25)'&lt;/SPAN&gt;&lt;SPAN&gt;[OrderNumber]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (25)'&lt;/SPAN&gt;&lt;SPAN&gt;[Company]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;BR /&gt;End result:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Feb 2023 11:02:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095196#M108568</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-02-23T11:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using both ALL and ALLEXCEPT together?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095446#M108591</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; Please see PM&lt;BR /&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Original message edited to give more details&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 13:21:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095446#M108591</guid>
      <dc:creator>BugmanJ</dc:creator>
      <dc:date>2023-02-23T13:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using both ALL and ALLEXCEPT together?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095451#M108592</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385864" data-lia-user-login="BugmanJ" class="lia-mention lia-mention-user"&gt;BugmanJ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;NumberofOrders =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[OrderNumber] ),
    ALLEXCEPT ( 'Table', 'Calendar'[Date] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 13:24:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095451#M108592</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-23T13:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using both ALL and ALLEXCEPT together?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095611#M108612</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; /&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Slight variance on the above. In the Data above, lets say I have an extra coloumn called [TIMETOPRODUCE] but I want that to filter out orders less then 155&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;NumberofOrders =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[OrderNumber] ),
    ALLEXCEPT ( 'Table', 'Calendar'[Date] ),
    FILTER ( 'Table'[TimeToProduce]&amp;lt;155)
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Doesnt work, any ideas?&lt;BR /&gt;J&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 14:31:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095611#M108612</guid>
      <dc:creator>BugmanJ</dc:creator>
      <dc:date>2023-02-23T14:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using both ALL and ALLEXCEPT together?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095689#M108617</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385864" data-lia-user-login="BugmanJ" class="lia-mention lia-mention-user"&gt;BugmanJ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;NumberofOrders =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[OrderNumber] ),
    ALLEXCEPT ( 'Table', 'Calendar'[Date] ),
    'Table'[TimeToProduce] &amp;lt; 155
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:06:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095689#M108617</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-23T15:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using both ALL and ALLEXCEPT together?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095782#M108631</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:32:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-both-ALL-and-ALLEXCEPT-together/m-p/3095782#M108631</guid>
      <dc:creator>BugmanJ</dc:creator>
      <dc:date>2023-02-23T15:32:18Z</dc:date>
    </item>
  </channel>
</rss>

