<?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: Exclude dates from another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935560#M96711</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478342" data-lia-user-login="JC2022" class="lia-mention lia-mention-user"&gt;JC2022&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Just add 0 like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    Schedule,
    SUMX (
        FILTER (
            Hours,
            Hours[Schedule ID] = Schedule[Schedule ID]
                &amp;amp;&amp;amp; Hours[Date] &amp;gt;= Schedule[From Date]
                &amp;amp;&amp;amp; Hours[Date] &amp;lt;= Schedule[To Date]
                &amp;amp;&amp;amp; NOT ( Hours[Date] IN VALUES ( Holidays[Date] ) )
        ),
        Hours[Hours]
    )
) + 0&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 29 Nov 2022 10:43:32 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-11-29T10:43:32Z</dc:date>
    <item>
      <title>Exclude dates from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935035#M96664</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have the formula below but I would like to exclude the dates that are in my Holidays table (a different table). How do I do this?&lt;/P&gt;&lt;PRE&gt;=
SUMX (
    Schedule,
    SUMX (
        FILTER (
            Hours,
            Hours[Schedule ID] = Schedule[Schedule ID]
                &amp;amp;&amp;amp; Hours[Date] &amp;gt;= Schedule[From Date]
                &amp;amp;&amp;amp; Hours[Date] &amp;lt;= Schedule[To Date]
        ),
        Schedule[Hours]
    )
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 08:33:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935035#M96664</guid>
      <dc:creator>JC2022</dc:creator>
      <dc:date>2022-11-29T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dates from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935214#M96678</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478342" data-lia-user-login="JC2022" class="lia-mention lia-mention-user"&gt;JC2022&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    Schedule,
    SUMX (
        FILTER (
            Hours,
            Hours[Schedule ID] = Schedule[Schedule ID]
                &amp;amp;&amp;amp; Hours[Date] &amp;gt;= Schedule[From Date]
                &amp;amp;&amp;amp; Hours[Date] &amp;lt;= Schedule[To Date]
                &amp;amp;&amp;amp; NOT ( Hours[Date] IN VALUES ( Holidays[Date] ) )
        ),
        Hours[Hours]
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Nov 2022 09:14:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935214#M96678</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-29T09:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dates from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935282#M96683</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478342" data-lia-user-login="JC2022" class="lia-mention lia-mention-user"&gt;JC2022&lt;/a&gt;,&lt;BR /&gt;you can use the below dax to exclude or include date.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The Date column used in above table is from Holiday Table and if these dates are there is Orders table then are "Included" else "Excluded"&lt;BR /&gt;&lt;BR /&gt;Please accept my answer as solution if it solves your issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 09:27:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935282#M96683</guid>
      <dc:creator>rautaniket0077</dc:creator>
      <dc:date>2022-11-29T09:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dates from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935465#M96702</link>
      <description>&lt;P&gt;Hi&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;&lt;P&gt;this is indeed excluding the dates, so it is not even showing the dates anymore. It's probably visually better to still show these dates but just return 0hours on these holiday dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you think? and how to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:16:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935465#M96702</guid>
      <dc:creator>JC2022</dc:creator>
      <dc:date>2022-11-29T10:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dates from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935560#M96711</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478342" data-lia-user-login="JC2022" class="lia-mention lia-mention-user"&gt;JC2022&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Just add 0 like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    Schedule,
    SUMX (
        FILTER (
            Hours,
            Hours[Schedule ID] = Schedule[Schedule ID]
                &amp;amp;&amp;amp; Hours[Date] &amp;gt;= Schedule[From Date]
                &amp;amp;&amp;amp; Hours[Date] &amp;lt;= Schedule[To Date]
                &amp;amp;&amp;amp; NOT ( Hours[Date] IN VALUES ( Holidays[Date] ) )
        ),
        Hours[Hours]
    )
) + 0&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:43:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935560#M96711</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-11-29T10:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dates from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935573#M96714</link>
      <description>&lt;P&gt;Perfect!&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:49:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-dates-from-another-table/m-p/2935573#M96714</guid>
      <dc:creator>JC2022</dc:creator>
      <dc:date>2022-11-29T10:49:30Z</dc:date>
    </item>
  </channel>
</rss>

