<?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: HELP ME! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3482364#M133180</link>
    <description>&lt;P&gt;Thank you so much - this works perfectly.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 05:10:20 GMT</pubDate>
    <dc:creator>TStan</dc:creator>
    <dc:date>2023-10-18T05:10:20Z</dc:date>
    <item>
      <title>HELP ME!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3477925#M132917</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some DAX code which matches an upload date (today's date) in my fact table to the Date column in my Date Table. I then need a column which returns True if the date falls within the previous 7 &lt;U&gt;&lt;STRONG&gt;working&lt;/STRONG&gt; &lt;/U&gt;days and false if it does not.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I intend to then add that as a filter to my visual to get a dynamic 7 day rolling result.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 06:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3477925#M132917</guid>
      <dc:creator>TStan</dc:creator>
      <dc:date>2023-10-16T06:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: HELP ME!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3479913#M133006</link>
      <description>&lt;P&gt;Consider using the NETWORKDAYS function to find the previous 7 working days:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dateInLast7WorkingDays =
var a = CALCULATE(NETWORKDAYS(SELECTEDVALUE('Table'[Date]), TODAY()), KEEPFILTERS('Table'[Date])) 
return COUNTROWS(FILTER('Table', a &amp;gt; 0 &amp;amp;&amp;amp; a &amp;lt;= 8))&lt;/LI-CODE&gt;&lt;P&gt;You can pass in a list of holidays to the &lt;A href="https://learn.microsoft.com/en-us/dax/networkdays-dax" target="_self"&gt;NETWORKDAYS&lt;/A&gt;() function for more accurate results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 00:29:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3479913#M133006</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-10-17T00:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: HELP ME!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3480033#M133014</link>
      <description>&lt;P&gt;That works however I need it to exclude Saturday/Sundays and return the last 7 working days. Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 02:35:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3480033#M133014</guid>
      <dc:creator>TStan</dc:creator>
      <dc:date>2023-10-17T02:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: HELP ME!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3482267#M133171</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="631470" data-lia-user-login="TStan" class="lia-mention lia-mention-user"&gt;TStan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _if=
IF(
    WEEKDAY(MAX('Fact Table'[Date]),2) in {6,7} || MAX('Fact Table'[Date])&amp;gt;TODAY(), BLANK(),
RANKX(
    FILTER(ALLSELECTED('Fact Table'),
    NOT(WEEKDAY('Fact Table'[Date],2)) in {6,7} &amp;amp;&amp;amp;'Fact Table'[Date]&amp;lt;=TODAY() ),CALCULATE(MAX('Fact Table'[Date])),,DESC))
return
IF(
    _if&amp;gt;1&amp;amp;&amp;amp;_if&amp;lt;=8&amp;amp;&amp;amp;_if&amp;lt;&amp;gt;BLANK(),1,0)&lt;/LI-CODE&gt;
&lt;P&gt;2. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 03:36:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3482267#M133171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-18T03:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: HELP ME!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3482364#M133180</link>
      <description>&lt;P&gt;Thank you so much - this works perfectly.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 05:10:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-ME/m-p/3482364#M133180</guid>
      <dc:creator>TStan</dc:creator>
      <dc:date>2023-10-18T05:10:20Z</dc:date>
    </item>
  </channel>
</rss>

