<?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: Discount Days of one Specific Date Column with Networkdays in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4018780#M158538</link>
    <description>&lt;P&gt;Try creating a calculated column.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Result Date = 
VAR StartDate = 'YourTable'[Date]
VAR Holidays = SELECTCOLUMNS(HolidayTable, "Date", HolidayTable[HolidayDate])
RETURN 
    CALCULATE(
        MAXX(
            ADDCOLUMNS(
                GENERATESERIES(1, 100),
                "Workday", 
                IF(
                    WEEKDAY(DATEADD(StartDate, -[Value], DAY), 2) &amp;lt;= 5 &amp;amp;&amp;amp; 
                    NOT(DATEADD(StartDate, -[Value], DAY) IN Holidays), 
                    DATEADD(StartDate, -[Value], DAY), 
                    BLANK()
                )
            ), [Workday]
        ),
        FILTER(
            ADDCOLUMNS(
                GENERATESERIES(1, 100),
                "Workday", 
                IF(
                    WEEKDAY(DATEADD(StartDate, -[Value], DAY), 2) &amp;lt;= 5 &amp;amp;&amp;amp; 
                    NOT(DATEADD(StartDate, -[Value], DAY) IN Holidays), 
                    DATEADD(StartDate, -[Value], DAY), 
                    BLANK()
                )
            ), 
            [Workday] &amp;lt;&amp;gt; BLANK() &amp;amp;&amp;amp; RANKX(
                ADDCOLUMNS(
                    GENERATESERIES(1, 100),
                    "Workday", 
                    IF(
                        WEEKDAY(DATEADD(StartDate, -[Value], DAY), 2) &amp;lt;= 5 &amp;amp;&amp;amp; 
                        NOT(DATEADD(StartDate, -[Value], DAY) IN Holidays), 
                        DATEADD(StartDate, -[Value], DAY), 
                        BLANK()
                    )
                ), 
                [Workday]
            ) = 7
        )
    )&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 01 Jul 2024 14:42:42 GMT</pubDate>
    <dc:creator>aduguid</dc:creator>
    <dc:date>2024-07-01T14:42:42Z</dc:date>
    <item>
      <title>Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4018700#M158537</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;Please, I need this answer a lot.&lt;BR /&gt;&lt;BR /&gt;I have a Power BI &lt;U&gt;Column &lt;STRONG&gt;"Date"&lt;/STRONG&gt;&lt;/U&gt; and I need discount 7 days from this specific date take off satuday, sunday and others holidays dates in a Holiday table.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&lt;FONT color="#FF0000"&gt;Date Column&amp;nbsp;&lt;/FONT&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(discount days in formula)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;Result in a new Date Column&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;U&gt;26/06/2024&lt;/U&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&lt;EM&gt;7&lt;/EM&gt; Days (networkdays)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 16/06/2024&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="118660" data-lia-user-login="rajendraongole1" class="lia-mention lia-mention-user"&gt;rajendraongole1&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="488310" data-lia-user-login="Idrissshatila" class="lia-mention lia-mention-user"&gt;Idrissshatila&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343036" data-lia-user-login="mark_endicott" class="lia-mention lia-mention-user"&gt;mark_endicott&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 14:57:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4018700#M158537</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-04T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4018780#M158538</link>
      <description>&lt;P&gt;Try creating a calculated column.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Result Date = 
VAR StartDate = 'YourTable'[Date]
VAR Holidays = SELECTCOLUMNS(HolidayTable, "Date", HolidayTable[HolidayDate])
RETURN 
    CALCULATE(
        MAXX(
            ADDCOLUMNS(
                GENERATESERIES(1, 100),
                "Workday", 
                IF(
                    WEEKDAY(DATEADD(StartDate, -[Value], DAY), 2) &amp;lt;= 5 &amp;amp;&amp;amp; 
                    NOT(DATEADD(StartDate, -[Value], DAY) IN Holidays), 
                    DATEADD(StartDate, -[Value], DAY), 
                    BLANK()
                )
            ), [Workday]
        ),
        FILTER(
            ADDCOLUMNS(
                GENERATESERIES(1, 100),
                "Workday", 
                IF(
                    WEEKDAY(DATEADD(StartDate, -[Value], DAY), 2) &amp;lt;= 5 &amp;amp;&amp;amp; 
                    NOT(DATEADD(StartDate, -[Value], DAY) IN Holidays), 
                    DATEADD(StartDate, -[Value], DAY), 
                    BLANK()
                )
            ), 
            [Workday] &amp;lt;&amp;gt; BLANK() &amp;amp;&amp;amp; RANKX(
                ADDCOLUMNS(
                    GENERATESERIES(1, 100),
                    "Workday", 
                    IF(
                        WEEKDAY(DATEADD(StartDate, -[Value], DAY), 2) &amp;lt;= 5 &amp;amp;&amp;amp; 
                        NOT(DATEADD(StartDate, -[Value], DAY) IN Holidays), 
                        DATEADD(StartDate, -[Value], DAY), 
                        BLANK()
                    )
                ), 
                [Workday]
            ) = 7
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Jul 2024 14:42:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4018780#M158538</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-07-01T14:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4019039#M158539</link>
      <description>&lt;P&gt;It wasn't work. It's very complex.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 18:11:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4019039#M158539</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-01T18:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4019761#M158573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="520203" data-lia-user-login="wendereis" class="lia-mention lia-mention-user"&gt;wendereis&lt;/a&gt;&amp;nbsp;- Create a new column in Power BI that discounts 7 working days (excluding Saturdays, Sundays, and holidays) from a specific date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you have holiday date so, i am using not in values of holiday date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Discounted Date =&lt;BR /&gt;VAR CurrentDate = 'YourTable'[Date]&lt;BR /&gt;VAR NumberOfDaysToSubtract = 7&lt;BR /&gt;VAR AllDates = CALENDAR(MIN('YourTable'[Date]), MAX('YourTable'[Date]))&lt;BR /&gt;VAR WorkingDates =&lt;BR /&gt;FILTER (&lt;BR /&gt;AllDates,&lt;BR /&gt;NOT ( WEEKDAY ( [Date], 2 ) IN { 6, 7 } ) &amp;amp;&amp;amp; -- Exclude Saturday (6) and Sunday (7)&lt;BR /&gt;NOT ( [Date] IN VALUES ( 'Holidays'[HolidayDate] ) ) -- Exclude holidays&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;MAXX (&lt;BR /&gt;TOPN (&lt;BR /&gt;NumberOfDaysToSubtract + 1,&lt;BR /&gt;FILTER (&lt;BR /&gt;WorkingDates,&lt;BR /&gt;[Date] &amp;lt;= CurrentDate&lt;BR /&gt;),&lt;BR /&gt;[Date],&lt;BR /&gt;DESC&lt;BR /&gt;),&lt;BR /&gt;[Date]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 06:17:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4019761#M158573</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-07-02T06:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4020460#M158608</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="118660" data-lia-user-login="rajendraongole1" class="lia-mention lia-mention-user"&gt;rajendraongole1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;I've applied your formula, but the result didn't discount the&amp;nbsp; "-7 days".&lt;/FONT&gt; Return the same "date" without discount.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The colorfull information &lt;FONT color="#3366FF"&gt;in blue below is my column base&lt;/FONT&gt;, and the information &lt;FONT color="#339966"&gt;in green is my holidays table&lt;/FONT&gt; that contain just one column with holidays dates.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can you see if there is any error in the formula, please?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;FORMULA:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Discounted Date =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;CurrentDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;'Painel de Controle - Outbound'&lt;/SPAN&gt;&lt;SPAN&gt;[1_1_DataPlan_InicioSeparacao]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;NumberOfDaysToSubtract&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;AllDates&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALENDAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;'Painel de Controle - Outbound'&lt;/SPAN&gt;&lt;SPAN&gt;[1_1_DataPlan_InicioSeparacao]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;'Painel de Controle - Outbound'&lt;/SPAN&gt;&lt;SPAN&gt;[1_1_DataPlan_InicioSeparacao]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;WorkingDates&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AllDates&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;WEEKDAY&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;[1_1_DataPlan_InicioSeparacao]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; ) &lt;/SPAN&gt;&lt;SPAN&gt;IN&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt; } ) &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;-- Exclude Saturday (6) and Sunday (7)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;[1_1_DataPlan_InicioSeparacao]&lt;/SPAN&gt; &lt;/FONT&gt;&lt;SPAN&gt;IN&lt;/SPAN&gt; &lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;'Data feriados coluna única LL01'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt; ) ) &lt;/SPAN&gt;&lt;SPAN&gt;-- Exclude holidays&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TOPN&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NumberOfDaysToSubtract&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WorkingDates&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;[1_1_DataPlan_InicioSeparacao]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;CurrentDate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;[1_1_DataPlan_InicioSeparacao]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;[1_1_DataPlan_InicioSeparacao]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jul 2024 12:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4020460#M158608</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-02T12:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4025564#M158911</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="520203" data-lia-user-login="wendereis" class="lia-mention lia-mention-user"&gt;wendereis&lt;/a&gt;&amp;nbsp;- If I interpret your requirement correctly, something like this will work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR CurrentDate = 'Table (8)'[Date]
VAR NumberOfDaysToSubtract = 7
VAR adjustment =
    SWITCH ( WEEKDAY ( 'Table (8)'[Date], 2 ), 1, 4, 2, 5, 3, 3, 4, 2, 5, 2 )
RETURN
    IF (
        OR (
            WEEKDAY ( CurrentDate, 2 ) IN { 6, 7 },
            LOOKUPVALUE ( 'Table (9)'[holiday], 'Table (9)'[holiday], CurrentDate )
        ),
        BLANK (),
        ( CurrentDate - NumberOfDaysToSubtract ) - adjustment
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it does not, you need to supply more sample data and desired outputs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 17:46:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4025564#M158911</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-07-04T17:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4025617#M158915</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Section 1:&lt;BR /&gt;Follow my comments:&lt;/STRONG&gt;&lt;BR /&gt;The table and column &lt;FONT color="#3366FF"&gt;in blue&lt;/FONT&gt; is date column I need to &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;discount 3 days&lt;/FONT&gt; without &lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;--&amp;gt; &lt;FONT color="#FF0000"&gt;S&lt;U&gt;aturday, Sunday and holiday dates&lt;/U&gt;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;and the table and column &lt;FONT color="#3366FF"&gt;&lt;FONT color="#FF6600"&gt;in orange below is date of holiday table&lt;/FONT&gt;&amp;nbsp;&lt;/FONT&gt;used in the formula in section 4 below and gave a wrong result.&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="738384" data-lia-user-login="xifeng_L" class="lia-mention lia-mention-user"&gt;xifeng_L&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="51446" data-lia-user-login="DataNinja" class="lia-mention lia-mention-user"&gt;DataNinja&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Section 2 &lt;FONT color="#00FF00"&gt;(THIS IS WHAT I NEED, PLEASE)&lt;/FONT&gt;:&lt;BR /&gt;Date Column&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;&lt;FONT color="#FF6600"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(discount days in formula)&amp;nbsp;&lt;/FONT&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;&lt;FONT color="#339966"&gt;Result Expected new Date Column&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;28&lt;/SPAN&gt;&lt;U&gt;/06/2024&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-3&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Days (&lt;FONT color="#FF0000"&gt;without Saturday, Sunday and holiday date&lt;/FONT&gt; )&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/FONT&gt; 25/06/2024&lt;BR /&gt;&lt;BR /&gt;Case too with Saturday and Sunday:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Date Column&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#FF6600"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (discount days in formula)&amp;nbsp;&lt;/FONT&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;&lt;FONT color="#339966"&gt;Result Expected new Date Column&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;24&lt;U&gt;/06/2024&lt;/U&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-3&amp;nbsp;Days (&lt;FONT color="#FF0000"&gt;without Saturday, Sunday and holiday when necessary&lt;/FONT&gt;&amp;nbsp;)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;19/06/2024&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;STRONG&gt;Section 3:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; I've applied your formula and &lt;FONT color="#FF0000"&gt;my result is [wrong] 23/06/2024&lt;/FONT&gt; &lt;FONT color="#339966"&gt;instead 25/06/2024.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;&lt;U&gt;(in this case just discount saturday and sunday. It can be in another cases that I will need to discount more 1 day besides Saturday and Munday if it be some holiday date).&lt;/U&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;STRONG&gt;Section 4:&lt;BR /&gt;TO THE COMMENTS NOTES ABOVE I'VE USED YOUR FORMULA THIS WAY BELOW:&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;Column_Test&amp;nbsp;(new column)&lt;/FONT&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; CurrentDate = &lt;FONT color="#3366FF"&gt;'Painel de Controle - Outbound&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;SPAN&gt;[1_2_DataPlan_FimSeparacao]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; NumberOfDaysToSubtract = &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; adjustment =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;WEEKDAY&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;FONT color="#3366FF"&gt;'Painel de Controle - Outbound&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;'&lt;FONT color="#0000FF"&gt;[1_2_DataPlan_FimSeparacao]&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;OR&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;WEEKDAY&lt;/SPAN&gt;&lt;SPAN&gt; ( CurrentDate, &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; ) &lt;/SPAN&gt;&lt;SPAN&gt;IN&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;FONT color="#FF6600"&gt;'Data feriados coluna única LL01'&lt;STRONG&gt;[Data feriados]&lt;/STRONG&gt;, 'Data feriados coluna única LL01&lt;STRONG&gt;'[Data feriados&lt;/STRONG&gt;]&lt;/FONT&gt;, CurrentDate )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt; (),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ( CurrentDate - NumberOfDaysToSubtract ) - adjustment&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:44:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4025617#M158915</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-05T13:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027007#M159037</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="520203" data-lia-user-login="wendereis" class="lia-mention lia-mention-user"&gt;wendereis&lt;/a&gt;&amp;nbsp;- You started off by saying you need -7 days, now you're saying you want -3. This changes the adjustment you need to make, because 7 days will cross more weekends than 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also now understand what needs doing with holidays. The below should now work for you:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR CurrentDate = 'Table (8)'[Date]
VAR NumberOfDaysToSubtract = 3
VAR weekend_adjustment =
    SWITCH ( WEEKDAY ( 'Table (8)'[Date], 2 ), 1, 2, 2, 2, 3, 2, 0 )
VAR minus_weekends = ( CurrentDate - NumberOfDaysToSubtract ) - weekend_adjustment
VAR minus_holidays =
    IF ( minus_weekends IN VALUES ( 'Table (9)'[holiday] ), 1, 0 )
VAR holiday_adjustment = minus_weekends - minus_holidays
RETURN
    holiday_adjustment&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it works, please accept as the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 11:49:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027007#M159037</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-07-05T11:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027035#M159038</link>
      <description>&lt;P&gt;But I need to do it with 3 days too and in another column with 7 days and in another column 1 day of difference.&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;In my test yesterday with 7 days the formula discounted more than 7 days.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;This new formula is with error in VAR when I try to use.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 12:15:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027035#M159038</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-05T12:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027123#M159048</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="520203" data-lia-user-login="wendereis" class="lia-mention lia-mention-user"&gt;wendereis&lt;/a&gt;&amp;nbsp;- Your error looks to be because you are creating a measure, rather than a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I have given you will work in a column, but I want to make one change that will account for multiple consecutive holidays.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR CurrentDate = 'Table (8)'[Date]
VAR NumberOfDaysToSubtract = 3
VAR weekend_adjustment =
    SWITCH ( WEEKDAY ( 'Table (8)'[Date], 2 ), 1, 2, 2, 2, 3, 2, 0 )
VAR minus_weekends = ( CurrentDate - NumberOfDaysToSubtract ) - weekend_adjustment
VAR holiday_adjustment = CALCULATE( min('Table (8)'[Date] ), REMOVEFILTERS( 'Table (8)'[Date]),  'Table (9)'[holiday] &amp;gt; minus_weekends )
VAR calc =
    IF ( minus_weekends IN VALUES ( 'Table (9)'[holiday] ), holiday_adjustment, minus_weekends)
RETURN
    calc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will now give you the next possible day after consecutive holidays.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make this work for -7 you can simply use the VAR adjustment from my previous measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For -1 you can learn how the adjustment works and tailor it yourself. We are not here to do your work for you, but to help you learn.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:50:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027123#M159048</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-07-05T13:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027181#M159058</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;Your error looks to be because you are creating a measure, rather than a column".&lt;BR /&gt;&lt;BR /&gt;Answer: No, I was inserting your formula in a "new column" (creating newcolumn). The error is still running.&lt;BR /&gt;&lt;BR /&gt;Thank so much for trying help me and sorry for stopping you time to try solve it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:19:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027181#M159058</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-05T14:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027212#M159062</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="520203" data-lia-user-login="wendereis" class="lia-mention lia-mention-user"&gt;wendereis&lt;/a&gt;&amp;nbsp;- Please expand your screenshot to show what the error is. You have cut off the screenshot at where the error would show (although I can see it begins after the first variable).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a screenshot of mine to show the code works (note: I have set 27/06 and 28/06 as holidays to test):&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:33:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027212#M159062</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-07-05T14:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027232#M159068</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Translated error message:&lt;/STRONG&gt; &lt;FONT color="#FF0000"&gt;"a circular dependency was detected Painel de Controle - Outbound[1_Teste2], 08daf9f0-f7fb-4f26-a951-77ce88ec6706, Painel de Controle - Outbound[1_Teste2].."&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 15:01:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027232#M159068</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-05T15:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027240#M159069</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="520203" data-lia-user-login="wendereis" class="lia-mention lia-mention-user"&gt;wendereis&lt;/a&gt;&amp;nbsp;- this screenshot has not been expanded. I cannot see the error. Need to see something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Note the error line at the bottom of the DAX window.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:50:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027240#M159069</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-07-05T14:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027303#M159082</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Translated error message:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;"a circular dependency was detected Painel de Controle - Outbound[1_Teste2], 08daf9f0-f7fb-4f26-a951-77ce88ec6706, Painel de Controle - Outbound[1_Teste2].."&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 15:23:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027303#M159082</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-05T15:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027341#M159087</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="520203" data-lia-user-login="wendereis" class="lia-mention lia-mention-user"&gt;wendereis&lt;/a&gt;&amp;nbsp;- Ok that's a strange error, but I promise you it's not being caused by my DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have another column called 1_Teste2 - Can you please delete this, and see what it does to this error?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 15:46:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4027341#M159087</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-07-05T15:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4028740#M159192</link>
      <description>&lt;P&gt;Hi my friend.&lt;BR /&gt;besides in my Power BI is appearing a message error after using this formula, as you show it works in your Power BI as print/picture you show, I am marking it as "accepted solution" for total help.&lt;BR /&gt;&lt;BR /&gt;I'm trying to discover how to do your formula works for me without error, or another way to solve my problem.&lt;BR /&gt;&lt;BR /&gt;Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 14:31:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4028740#M159192</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-07T14:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4028742#M159193</link>
      <description>&lt;P&gt;I don't have another column called "1_Teste2".&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately it's still appearing this message for me.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;besides my Power BI is appearing this message error after using this formula, as you show it works in your Power BI as print/picture you show, I am marking it as "accepted solution" for total help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to discover how to do your formula works for me without error, or another way to solve my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much!!&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 14:30:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4028742#M159193</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-07T14:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4028745#M159194</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="520203" data-lia-user-login="wendereis" class="lia-mention lia-mention-user"&gt;wendereis&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343036" data-lia-user-login="mark_endicott" class="lia-mention lia-mention-user"&gt;mark_endicott&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="118660" data-lia-user-login="rajendraongole1" class="lia-mention lia-mention-user"&gt;rajendraongole1&lt;/a&gt;&amp;nbsp;, and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81736" data-lia-user-login="aduguid" class="lia-mention lia-mention-user"&gt;aduguid&lt;/a&gt;&amp;nbsp;each have contributed guidance and offered solutions to your question.&amp;nbsp; &amp;nbsp;Please consider the following when asking a question as this is the decorum when asking a question.&lt;BR /&gt;&lt;BR /&gt;Provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 14:35:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4028745#M159194</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-07-07T14:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Discount Days of one Specific Date Column with Networkdays</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4032714#M159596</link>
      <description>&lt;P&gt;Hi!!&lt;BR /&gt;&lt;BR /&gt;This Youtube Video Help me a lot:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=RD996KUYM8Q&amp;amp;list=PLzPjvUUXZT62h53QBORroNIyU8TyQILxM&amp;amp;index=5" target="_blank"&gt;https://www.youtube.com/watch?v=RD996KUYM8Q&amp;amp;list=PLzPjvUUXZT62h53QBORroNIyU8TyQILxM&amp;amp;index=5&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Tilte of Youtube video:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;H1&gt;&lt;FONT size="3"&gt;"How to Add Business Days on Any Date in Power BI in Hindi | WORKDAY Alternative in Power BI"&lt;/FONT&gt;&lt;/H1&gt;</description>
      <pubDate>Tue, 09 Jul 2024 14:14:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discount-Days-of-one-Specific-Date-Column-with-Networkdays/m-p/4032714#M159596</guid>
      <dc:creator>wendereis</dc:creator>
      <dc:date>2024-07-09T14:14:28Z</dc:date>
    </item>
  </channel>
</rss>

