<?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 Creare a new table including working days between dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creare-a-new-table-including-working-days-between-dates/m-p/1785050#M37482</link>
    <description>&lt;P&gt;Hello Guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this problem where there is a fact table with the a technician _id and the date that he started to work in this project and the date that he finished it.&amp;nbsp; Something like that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;project_id&lt;/TD&gt;&lt;TD&gt;technician_id&lt;/TD&gt;&lt;TD&gt;date_open&lt;/TD&gt;&lt;TD&gt;date_close&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;2020-01-01&lt;/TD&gt;&lt;TD&gt;2020-01-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10002&lt;/TD&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;2020-01-01&lt;/TD&gt;&lt;TD&gt;2020-01-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10003&lt;/TD&gt;&lt;TD&gt;A2&lt;/TD&gt;&lt;TD&gt;2020-02-02&lt;/TD&gt;&lt;TD&gt;2020-02-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10004&lt;/TD&gt;&lt;TD&gt;A3&lt;/TD&gt;&lt;TD&gt;2020-02-03&lt;/TD&gt;&lt;TD&gt;2020-02-20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to count the number of distinct days that the technician has worked. It is a fact that the technician can work in several projects at the same time. Also, it counts all days between dates, incluing opening day and closing day.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to do that?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Expected return:&amp;nbsp;&lt;BR /&gt;(technician_ID) - (work days)&lt;BR /&gt;A1 - 20&amp;nbsp;&lt;BR /&gt;A2 - 19&lt;/P&gt;&lt;P&gt;A3 - 18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&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>Wed, 14 Apr 2021 15:47:45 GMT</pubDate>
    <dc:creator>DDalmas</dc:creator>
    <dc:date>2021-04-14T15:47:45Z</dc:date>
    <item>
      <title>Creare a new table including working days between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creare-a-new-table-including-working-days-between-dates/m-p/1785050#M37482</link>
      <description>&lt;P&gt;Hello Guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this problem where there is a fact table with the a technician _id and the date that he started to work in this project and the date that he finished it.&amp;nbsp; Something like that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;project_id&lt;/TD&gt;&lt;TD&gt;technician_id&lt;/TD&gt;&lt;TD&gt;date_open&lt;/TD&gt;&lt;TD&gt;date_close&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;2020-01-01&lt;/TD&gt;&lt;TD&gt;2020-01-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10002&lt;/TD&gt;&lt;TD&gt;A1&lt;/TD&gt;&lt;TD&gt;2020-01-01&lt;/TD&gt;&lt;TD&gt;2020-01-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10003&lt;/TD&gt;&lt;TD&gt;A2&lt;/TD&gt;&lt;TD&gt;2020-02-02&lt;/TD&gt;&lt;TD&gt;2020-02-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10004&lt;/TD&gt;&lt;TD&gt;A3&lt;/TD&gt;&lt;TD&gt;2020-02-03&lt;/TD&gt;&lt;TD&gt;2020-02-20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to count the number of distinct days that the technician has worked. It is a fact that the technician can work in several projects at the same time. Also, it counts all days between dates, incluing opening day and closing day.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to do that?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Expected return:&amp;nbsp;&lt;BR /&gt;(technician_ID) - (work days)&lt;BR /&gt;A1 - 20&amp;nbsp;&lt;BR /&gt;A2 - 19&lt;/P&gt;&lt;P&gt;A3 - 18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&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>Wed, 14 Apr 2021 15:47:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creare-a-new-table-including-working-days-between-dates/m-p/1785050#M37482</guid>
      <dc:creator>DDalmas</dc:creator>
      <dc:date>2021-04-14T15:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creare a new table including working days between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creare-a-new-table-including-working-days-between-dates/m-p/1785183#M37486</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92133" data-lia-user-login="DDalmas" class="lia-mention lia-mention-user"&gt;DDalmas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.&lt;/P&gt;&lt;P&gt;All measures are in the sample pbix file.&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;&lt;A href="https://www.dropbox.com/s/nuy2ru1w5wta2wv/ddalmas.pbix?dl=0" target="_self"&gt;https://www.dropbox.com/s/nuy2ru1w5wta2wv/ddalmas.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;EM&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;EM&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.&lt;BR /&gt;&lt;BR /&gt;Linkedin: &lt;A href="https://www.linkedin.com/in/jihwankim1975/" target="_blank"&gt;https://www.linkedin.com/in/jihwankim1975/&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 16:55:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creare-a-new-table-including-working-days-between-dates/m-p/1785183#M37486</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-04-14T16:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creare a new table including working days between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creare-a-new-table-including-working-days-between-dates/m-p/1785317#M37497</link>
      <description>&lt;P&gt;Thanks for your help. It worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 18:36:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creare-a-new-table-including-working-days-between-dates/m-p/1785317#M37497</guid>
      <dc:creator>DDalmas</dc:creator>
      <dc:date>2021-04-14T18:36:27Z</dc:date>
    </item>
  </channel>
</rss>

