<?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: EOM Saturday of previous/before month to EOM last Friday of following(Next) in 3years Date table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EOM-Saturday-of-previous-before-month-to-EOM-last-Friday-of/m-p/3992681#M154975</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="755571" data-lia-user-login="kkanukurthi" class="lia-mention lia-mention-user"&gt;kkanukurthi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a new New sat calculated column using the following DAX expression:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Sat = 
VAR _value = 'Diff_DAX'[Value]-1
RETURN 
IF('Diff_DAX'[Value]&amp;gt;=1,MAXX(FILTER('Diff_DAX','Diff_DAX'[Value]=_value),'Diff_DAX'[Fri])+1,'Diff_DAX'[Sat])&lt;/LI-CODE&gt;
&lt;P&gt;This calculated column returns the results you were expecting:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I've uploaded the PBIX file below for this time.&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;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 06:49:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-14T06:49:12Z</dc:date>
    <item>
      <title>EOM Saturday of previous/before month to EOM last Friday of following(Next) in 3years Date table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EOM-Saturday-of-previous-before-month-to-EOM-last-Friday-of/m-p/3979878#M154303</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="474658" data-lia-user-login="ThxAlot" class="lia-mention lia-mention-user"&gt;ThxAlot&lt;/a&gt;, Thanks for the solution you provided for my last post. &lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-last-Saturday-of-previous-month-and-last-friday-of/m-p/3977341#M154218" target="_blank"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-last-Saturday-of-previous-month-and-last-friday-of/m-p/3977341#M154218&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a small discrepency in saturday dates in column1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The date for the Saturday is not coming up in line with Friday date from column2.&amp;nbsp; For example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Saturday date should start with immidiate to Friday date (i.e Friday date+1), not the every month end saturday.&lt;/P&gt;&lt;P&gt;Below is the image from your output. Al the yellow higlighted are month end saturdays. But it should be +date of Friday end date from column2.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;above example expected out :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Saturday date&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;&amp;nbsp;Fridaydate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;27/05/2024&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;31/05/2024&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;01/06/2024 (Fridaydate+1)&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;28/06/2024&lt;/P&gt;&lt;P&gt;28/12/2025&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31/01/2025&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;01/02/2025&amp;nbsp;(Fridaydate+1)&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 28/02/2025&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All Friday dates are perfectly good. Only issue with saturday date. please help me with modified dax code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with Dax calculated columns for 3 years (2023 to 2025).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help in advance.Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 12:36:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EOM-Saturday-of-previous-before-month-to-EOM-last-Friday-of/m-p/3979878#M154303</guid>
      <dc:creator>kkanukurthi</dc:creator>
      <dc:date>2024-06-07T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: EOM Saturday of previous/before month to EOM last Friday of following(Next) in 3years Date table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EOM-Saturday-of-previous-before-month-to-EOM-last-Friday-of/m-p/3980863#M154361</link>
      <description>&lt;P&gt;These dates will never change. It is much more efficient to use an external reference table that has all this precomputed.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 23:06:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EOM-Saturday-of-previous-before-month-to-EOM-last-Friday-of/m-p/3980863#M154361</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-07T23:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: EOM Saturday of previous/before month to EOM last Friday of following(Next) in 3years Date table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EOM-Saturday-of-previous-before-month-to-EOM-last-Friday-of/m-p/3992681#M154975</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="755571" data-lia-user-login="kkanukurthi" class="lia-mention lia-mention-user"&gt;kkanukurthi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a new New sat calculated column using the following DAX expression:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Sat = 
VAR _value = 'Diff_DAX'[Value]-1
RETURN 
IF('Diff_DAX'[Value]&amp;gt;=1,MAXX(FILTER('Diff_DAX','Diff_DAX'[Value]=_value),'Diff_DAX'[Fri])+1,'Diff_DAX'[Sat])&lt;/LI-CODE&gt;
&lt;P&gt;This calculated column returns the results you were expecting:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I've uploaded the PBIX file below for this time.&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;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 06:49:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/EOM-Saturday-of-previous-before-month-to-EOM-last-Friday-of/m-p/3992681#M154975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-14T06:49:12Z</dc:date>
    </item>
  </channel>
</rss>

