<?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 yet another allexcept question in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/yet-another-allexcept-question/m-p/1850868#M39548</link>
    <description>&lt;P&gt;hi !&lt;/P&gt;&lt;P&gt;I&amp;nbsp; wanted to get the first TimeSheet date encoded by every employee.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mindate = CALCULATE(MIN((TS[msdyn_date])), ALLEXCEPT(TS,TS[msdyn_bookableresource]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this work perfectly.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;then I also wanted to keep a calendar filter.&amp;nbsp; So I added&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TS[msdyn_date] to the ALLEXCEPT --&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mindate = CALCULATE(MIN((TS[msdyn_date])), ALLEXCEPT(TS,TS[msdyn_bookableresource],TS[msdyn_date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I expected that any filter applied to the Date table would affect my mindate. It doesn't.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The Calendar table is linked to the msdyn_date and I put a slicer on it.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;deit: I tried something else :&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mindate = CALCULATE(MIN((TS[msdyn_date])), ALLEXCEPT(TS,TS[msdyn_bookableresource], 'Date'[YearMonthShort]))&lt;BR /&gt;this worked, but I cannot accept that solution because the slicer will not be the only way to filter dates &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 19 May 2021 09:39:54 GMT</pubDate>
    <dc:creator>fsim</dc:creator>
    <dc:date>2021-05-19T09:39:54Z</dc:date>
    <item>
      <title>yet another allexcept question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/yet-another-allexcept-question/m-p/1850868#M39548</link>
      <description>&lt;P&gt;hi !&lt;/P&gt;&lt;P&gt;I&amp;nbsp; wanted to get the first TimeSheet date encoded by every employee.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mindate = CALCULATE(MIN((TS[msdyn_date])), ALLEXCEPT(TS,TS[msdyn_bookableresource]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this work perfectly.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;then I also wanted to keep a calendar filter.&amp;nbsp; So I added&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TS[msdyn_date] to the ALLEXCEPT --&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mindate = CALCULATE(MIN((TS[msdyn_date])), ALLEXCEPT(TS,TS[msdyn_bookableresource],TS[msdyn_date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I expected that any filter applied to the Date table would affect my mindate. It doesn't.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The Calendar table is linked to the msdyn_date and I put a slicer on it.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;deit: I tried something else :&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mindate = CALCULATE(MIN((TS[msdyn_date])), ALLEXCEPT(TS,TS[msdyn_bookableresource], 'Date'[YearMonthShort]))&lt;BR /&gt;this worked, but I cannot accept that solution because the slicer will not be the only way to filter dates &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 May 2021 09:39:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/yet-another-allexcept-question/m-p/1850868#M39548</guid>
      <dc:creator>fsim</dc:creator>
      <dc:date>2021-05-19T09:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: yet another allexcept question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/yet-another-allexcept-question/m-p/1851162#M39551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="3789" data-lia-user-login="fsim" class="lia-mention lia-mention-user"&gt;fsim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ALLEXCEPT can take a mixture of column &amp;amp; table references for arguments 2+.&lt;/P&gt;
&lt;P&gt;So you could write this to ensure any filters from the 'Date' table are retained:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mindate =
CALCULATE (
    MIN ( TS[msdyn_date] ),
    ALLEXCEPT ( TS, TS[msdyn_bookableresource], 'Date' )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Does this achieve the result you are wanting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 21:05:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/yet-another-allexcept-question/m-p/1851162#M39551</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2021-05-19T21:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: yet another allexcept question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/yet-another-allexcept-question/m-p/1851275#M39555</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked.&lt;BR /&gt;I don't know why I wanted to add a column instead of a full table. Thank you !&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 11:54:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/yet-another-allexcept-question/m-p/1851275#M39555</guid>
      <dc:creator>fsim</dc:creator>
      <dc:date>2021-05-19T11:54:44Z</dc:date>
    </item>
  </channel>
</rss>

