<?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 start date - end date and sum per month in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/start-date-end-date-and-sum-per-month/m-p/2383938#M856486</link>
    <description>&lt;P&gt;Hi !&lt;BR /&gt;I'm not even sure how to express myself on this problem.&lt;/P&gt;&lt;P&gt;I have one table of tasks, with a start date, an end date, a number of allocated daily hours and an user.&lt;BR /&gt;&lt;SPAN&gt;I also have a calendar table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to have an idea of the montly occupation rate of my users knowing that they are supposed to work 8h/day from mon to fri.&lt;/P&gt;&lt;P&gt;I guess I should create some measure that counts for every project/user the number of days between the two dates , then multiply by the number of allocated hours and sum the results on a monthly basis.&amp;nbsp; Then devided by the numbers of avalaible working hours. (I already have this one !)&amp;nbsp;&lt;BR /&gt;So a specific user, working 4hours a day on one single project that ran from feb 1st to March 1st&amp;nbsp; should have a 50% occupation rate for february and&amp;nbsp; 2% on March (4h/ 23 working day * 8h)&lt;BR /&gt;I tried using datebetween , but I get an error message saying that there are many different start date. I can't figure it out (spent too much time in power query and not enough on Dax :-D)&lt;BR /&gt;Could a good soul gives me an hint ?&lt;BR /&gt;thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2022 16:28:36 GMT</pubDate>
    <dc:creator>fsim</dc:creator>
    <dc:date>2022-03-09T16:28:36Z</dc:date>
    <item>
      <title>start date - end date and sum per month</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/start-date-end-date-and-sum-per-month/m-p/2383938#M856486</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;I'm not even sure how to express myself on this problem.&lt;/P&gt;&lt;P&gt;I have one table of tasks, with a start date, an end date, a number of allocated daily hours and an user.&lt;BR /&gt;&lt;SPAN&gt;I also have a calendar table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to have an idea of the montly occupation rate of my users knowing that they are supposed to work 8h/day from mon to fri.&lt;/P&gt;&lt;P&gt;I guess I should create some measure that counts for every project/user the number of days between the two dates , then multiply by the number of allocated hours and sum the results on a monthly basis.&amp;nbsp; Then devided by the numbers of avalaible working hours. (I already have this one !)&amp;nbsp;&lt;BR /&gt;So a specific user, working 4hours a day on one single project that ran from feb 1st to March 1st&amp;nbsp; should have a 50% occupation rate for february and&amp;nbsp; 2% on March (4h/ 23 working day * 8h)&lt;BR /&gt;I tried using datebetween , but I get an error message saying that there are many different start date. I can't figure it out (spent too much time in power query and not enough on Dax :-D)&lt;BR /&gt;Could a good soul gives me an hint ?&lt;BR /&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 16:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/start-date-end-date-and-sum-per-month/m-p/2383938#M856486</guid>
      <dc:creator>fsim</dc:creator>
      <dc:date>2022-03-09T16:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: start date - end date and sum per month</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/start-date-end-date-and-sum-per-month/m-p/2391488#M858503</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="3789" data-lia-user-login="fsim" class="lia-mention lia-mention-user"&gt;fsim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;See if this blog can help you:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.enterprisedna.co/how-to-calculate-occupancy-days-per-month-in-power-bi-using-dax/" target="_self"&gt;https://blog.enterprisedna.co/how-to-calculate-occupancy-days-per-month-in-power-bi-using-dax/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can provide some sample data and the results you expect,we can do more tests to help you check this issue.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 07:44:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/start-date-end-date-and-sum-per-month/m-p/2391488#M858503</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-03-14T07:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: start date - end date and sum per month</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/start-date-end-date-and-sum-per-month/m-p/2394840#M859509</link>
      <description>&lt;P&gt;Hi Liang,&lt;BR /&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;Obvioulsy, Dax is not the best tool for this. I decided to go back to PowerQuerry and generate a list of date for each reccord. Then I was able to expand the list in new rows.&amp;nbsp;&lt;BR /&gt;List.Dates([start_date],Duration.Days([end_date]-[start_date])+1, #duration(1,0,0,0))&lt;BR /&gt;Now I have to deal with repeated dates, but this is another storry&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 09:52:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/start-date-end-date-and-sum-per-month/m-p/2394840#M859509</guid>
      <dc:creator>fsim</dc:creator>
      <dc:date>2022-03-15T09:52:35Z</dc:date>
    </item>
  </channel>
</rss>

