<?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 Column count working days (without weekend/holidays) between two dates columns in the same table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/2578622#M73920</link>
    <description>&lt;P&gt;Hello!&lt;BR /&gt;I need to create a new column in a table in Power BI that contains the count of business days (excluding weekends and holidays) between two date columns in the same table.&lt;BR /&gt;I tried with the DateDiff function but this function gives a total of days and we cannot modify it.&lt;BR /&gt;Can I try using the GENERATESERIES function at runtime, to create the range of days and then evaluate the valid days for each row?&lt;BR /&gt;This would create a table with all the ranges between every two elements (start date and end date) in the row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The example is in the format dd/mm/yyyy and the Dif column is the result of DateDiff (Don´t work!).&lt;/P&gt;&lt;P&gt;I need help please!&lt;/P&gt;&lt;P&gt;Thanks and regards!&lt;/P&gt;&lt;P&gt;[lmarins]&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 21:17:03 GMT</pubDate>
    <dc:creator>lmarins</dc:creator>
    <dc:date>2022-06-14T21:17:03Z</dc:date>
    <item>
      <title>Column count working days (without weekend/holidays) between two dates columns in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/2578622#M73920</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I need to create a new column in a table in Power BI that contains the count of business days (excluding weekends and holidays) between two date columns in the same table.&lt;BR /&gt;I tried with the DateDiff function but this function gives a total of days and we cannot modify it.&lt;BR /&gt;Can I try using the GENERATESERIES function at runtime, to create the range of days and then evaluate the valid days for each row?&lt;BR /&gt;This would create a table with all the ranges between every two elements (start date and end date) in the row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The example is in the format dd/mm/yyyy and the Dif column is the result of DateDiff (Don´t work!).&lt;/P&gt;&lt;P&gt;I need help please!&lt;/P&gt;&lt;P&gt;Thanks and regards!&lt;/P&gt;&lt;P&gt;[lmarins]&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 21:17:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/2578622#M73920</guid>
      <dc:creator>lmarins</dc:creator>
      <dc:date>2022-06-14T21:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Column count working days (without weekend/holidays) between two dates columns in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/2578954#M73940</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;It is for creating a new column, and it only counts days without weekends.&lt;BR /&gt;In my opinion, if you want to exclude your public holiday, having a dim-calendar table can help.&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;LI-CODE lang="markup"&gt;Diff count without weekend CC =
COUNTROWS (
    FILTER (
        ADDCOLUMNS (
            GENERATESERIES ( Data[StartDate], Data[EndDate] ),
            "@weekday", WEEKDAY ( [Value], 2 )
        ),
        NOT ( [@weekday] IN { 6, 7 } )
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Jun 2022 02:51:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/2578954#M73940</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-06-15T02:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Column count working days (without weekend/holidays) between two dates columns in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/2591472#M74663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="213199" data-lia-user-login="lmarins" class="lia-mention lia-mention-user"&gt;lmarins&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Does your problem be resolved? Do you need more further help?&lt;/P&gt;
&lt;P&gt;Here's a blog about&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Use-DAX-to-create-a-calendar-table-with-holidays/ba-p/1726949" target="_blank"&gt;Using-DAX-to-create-a-calendar-table-with-holidays&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If your problem has been resolved, please kindly accept the helpful replies as solutions. If not, please feel free to let me know your&amp;nbsp;difficulties.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 07:52:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/2591472#M74663</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-06-21T07:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Column count working days (without weekend/holidays) between two dates columns in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/2601155#M75182</link>
      <description>&lt;P&gt;Hello Jihwan Kim!&lt;BR /&gt;Thank you very much, your answer solves my doubt.&lt;/P&gt;&lt;P&gt;I will try to associate the Dates table to this query and exclude holidays from the total days.&lt;BR /&gt;Greetings.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 17:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/2601155#M75182</guid>
      <dc:creator>lmarins</dc:creator>
      <dc:date>2022-06-24T17:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Column count working days (without weekend/holidays) between two dates columns in the same table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/3262746#M120712</link>
      <description>&lt;P&gt;Buen dia estimado, espero me pueda apoyar, tengo el mismo caso y utilice esta funcion solo que mis campos que contiene las fechas tienen algunas filas vacias y me da error, sabe si hay manera de omitir los vacios ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;De antemano gracias&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 23:03:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-count-working-days-without-weekend-holidays-between-two/m-p/3262746#M120712</guid>
      <dc:creator>FrankGaraco</dc:creator>
      <dc:date>2023-05-31T23:03:50Z</dc:date>
    </item>
  </channel>
</rss>

