<?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: (latest date - transaction date) - non working days in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/latest-date-transaction-date-non-working-days/m-p/2725463#M83293</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357960" data-lia-user-login="Easley06" class="lia-mention lia-mention-user"&gt;Easley06&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR N1 =
    ABS ( [Today] - SELECTEDVALUE ( 'Table'[transaction date] ) )
VAR N2 =
    CALCULATE (
        COUNT ( 'Date'[Non working day] ),
        FILTER (
            ALL ( 'Date' ),
            [Date] &amp;gt;= SELECTEDVALUE ( 'Table'[transaction date] )
                &amp;amp;&amp;amp; [Date] &amp;lt;= [Today]
                &amp;amp;&amp;amp; [Non working day] = 1
        )
    )
RETURN
    N1 - N2&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 08:59:35 GMT</pubDate>
    <dc:creator>v-zhangti</dc:creator>
    <dc:date>2022-08-25T08:59:35Z</dc:date>
    <item>
      <title>(latest date - transaction date) - non working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/latest-date-transaction-date-non-working-days/m-p/2717303#M82748</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would like to ask for possible solution for this&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have column for today and transaction date i want also to exclude weekend/holiday&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;based on this columns&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure = Total count of records&amp;nbsp;&lt;BR /&gt;((ABS(current date - date_reported)) - nonworking days)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Aug 2022 13:38:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/latest-date-transaction-date-non-working-days/m-p/2717303#M82748</guid>
      <dc:creator>Easley06</dc:creator>
      <dc:date>2022-08-22T13:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: (latest date - transaction date) - non working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/latest-date-transaction-date-non-working-days/m-p/2717522#M82755</link>
      <description>&lt;P&gt;You can try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Num working days =
NETWORKDAYS (
    SELECTEDVALUE ( 'Table'[transaction date] ),
    TODAY (),
    1,
    CALCULATETABLE ( VALUES ( 'Date'[Date] ), 'Date'[non_working_day] = 1 )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Aug 2022 14:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/latest-date-transaction-date-non-working-days/m-p/2717522#M82755</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-22T14:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: (latest date - transaction date) - non working days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/latest-date-transaction-date-non-working-days/m-p/2725463#M83293</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="357960" data-lia-user-login="Easley06" class="lia-mention lia-mention-user"&gt;Easley06&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR N1 =
    ABS ( [Today] - SELECTEDVALUE ( 'Table'[transaction date] ) )
VAR N2 =
    CALCULATE (
        COUNT ( 'Date'[Non working day] ),
        FILTER (
            ALL ( 'Date' ),
            [Date] &amp;gt;= SELECTEDVALUE ( 'Table'[transaction date] )
                &amp;amp;&amp;amp; [Date] &amp;lt;= [Today]
                &amp;amp;&amp;amp; [Non working day] = 1
        )
    )
RETURN
    N1 - N2&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 08:59:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/latest-date-transaction-date-non-working-days/m-p/2725463#M83293</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-08-25T08:59:35Z</dc:date>
    </item>
  </channel>
</rss>

