<?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: To calculate the exact date on 120 working days in future from a certain date value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/4003920#M156239</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Yes you can use Calender table for this just make sure relation is there between both tables and then you can create a calculated column using formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Date after 120 days =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR StartDate = 'Table1'[Open Date]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR WorkingDays = 120&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR EndDate = StartDate + WorkingDays&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR NonWorkingDays = CALCULATE(COUNTROWS('Calendar'), 'Calendar'[Dates] &amp;gt;= StartDate &amp;amp;&amp;amp; 'Calendar'[Dates] &amp;lt;= EndDate &amp;amp;&amp;amp; 'Calendar'[Is Working Day] = FALSE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EndDate + NonWorkingDays&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 10:56:16 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-06-21T10:56:16Z</dc:date>
    <item>
      <title>To calculate the exact date on 120 working days in future from a certain date value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/4003903#M156237</link>
      <description>&lt;P class=""&gt;I am relatively new to Power BI and struggling to implement a requirement in my Power BI Dashboard.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I want to implement a certain feature using DAX.&lt;/P&gt;&lt;P class=""&gt;I have a column "Open Date" (date/time type) in one table "Table1" and i want to create a new column "Date after 120 days" in the same table which should give me the exact date after 120 days (Open Date +120 days) but should exclude non-working days during the calculation.&lt;/P&gt;&lt;P class=""&gt;To be specific,&lt;/P&gt;&lt;P class=""&gt;Date after 120 days = Open Date + 120 (working days).&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;How can i achieve this?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Additional information:&lt;/P&gt;&lt;P class=""&gt;I already have another table "Calendar" which has column "Dates" (showing all the dates until 31st December 2025) and column "Is Working Day" (Boolean Type) which has value True for working day and False for non-working day against each Date.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Can this "Calendar" table be used to achieve the above requirement?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Any suggestions will be appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 10:47:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/4003903#M156237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-21T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: To calculate the exact date on 120 working days in future from a certain date value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/4003920#M156239</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Yes you can use Calender table for this just make sure relation is there between both tables and then you can create a calculated column using formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Date after 120 days =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR StartDate = 'Table1'[Open Date]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR WorkingDays = 120&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR EndDate = StartDate + WorkingDays&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR NonWorkingDays = CALCULATE(COUNTROWS('Calendar'), 'Calendar'[Dates] &amp;gt;= StartDate &amp;amp;&amp;amp; 'Calendar'[Dates] &amp;lt;= EndDate &amp;amp;&amp;amp; 'Calendar'[Is Working Day] = FALSE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EndDate + NonWorkingDays&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 10:56:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/4003920#M156239</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-06-21T10:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: To calculate the exact date on 120 working days in future from a certain date value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/4004038#M156247</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR CurrentDate = 
    Sales[Order Date]
VAR WorkingDates = 
    CALCULATETABLE ( 
        VALUES ( Dates[Date] ),
        Dates[Date] &amp;gt;= CurrentDate,
        Dates[Working Day] = TRUE()
    )
VAR FutureDate = 
    INDEX ( 
        120,
        WorkingDates,
        ORDERBY ( Dates[Date], ASC )
    )
RETURN FutureDate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a slightly faster variant:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR CurrentDate = 
    Sales[Order Date]
VAR WorkingDates = 
    FILTER ( 
        ALL ( Dates[Date], Dates[Working Day] ),
        Dates[Date] &amp;gt;= CurrentDate
            &amp;amp;&amp;amp; Dates[Working Day] = TRUE()
    )
VAR FutureDate = 
    SELECTCOLUMNS ( 
        INDEX ( 
            120,
            WorkingDates,
            ORDERBY ( Dates[Date], ASC )
        ),
        Dates[Date]
    )
RETURN FutureDate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 12:17:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/4004038#M156247</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-06-21T12:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: To calculate the exact date on 120 working days in future from a certain date value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/4004181#M156263</link>
      <description>&lt;P&gt;Thanks for the response. It worked.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 13:29:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/4004181#M156263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-21T13:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: To calculate the exact date on 120 working days in future from a certain date value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/5139480#M187504</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I was trying to resolve the same issue but found your solution came up with a date too early as it wasn't including non working days after the end date (but before the revised end date once you've added in the non-working days).&lt;BR /&gt;I was using it for 90 days and my first date was 14/11/2025. Your solution came up with 13/3/26.&lt;BR /&gt;The correct solution should have been nearer 24/3/26 but because the end date came out at 12/2/26 it excluded the non working days between 12th Feb and 24th March - if that makes sense?!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 13:50:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/5139480#M187504</guid>
      <dc:creator>mikeangell</dc:creator>
      <dc:date>2026-03-26T13:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: To calculate the exact date on 120 working days in future from a certain date value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/5139481#M187505</link>
      <description>&lt;P&gt;This solution worked perfectly for me - Thank You.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 13:51:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-calculate-the-exact-date-on-120-working-days-in-future-from-a/m-p/5139481#M187505</guid>
      <dc:creator>mikeangell</dc:creator>
      <dc:date>2026-03-26T13:51:05Z</dc:date>
    </item>
  </channel>
</rss>

