<?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 Summarizing Capacity Allocated &amp;amp; Capacity Remaining for a Bookable Resource in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Capacity-Allocated-amp-Capacity-Remaining-for-a/m-p/1534299#M30136</link>
    <description>&lt;P&gt;Hi all - long time lurker, first time poster, so apologies in advance if this is the incorrect sub:&lt;BR /&gt;&lt;BR /&gt;I am hoping to summarize completed/scheduled event duration data with values from three tables.&lt;BR /&gt;&lt;BR /&gt;table A - Events: Contains running registry of training events.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calculated columns use DATEDIFF to return event duration (event end date/time - event start date/time) in hours and minutes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;table B - Trainer Logs&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Maps the user guid of a bookable resource (in this case, a contact with a "Trainer" designation) to the guid of the event in table A in which that Trainer's time was used&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;table C - Trainer Capacity&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Trainer's name, guid, and a hard-coded quarterly hours value (160)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is relatively straightforward:&lt;BR /&gt;For each unique trainer ID + trainer name in table B/C, summarize:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the QTD count of Completed vs. Scheduled events (from table A).&lt;UL&gt;&lt;LI&gt;Any event with a end date &amp;lt; today = "Completed"; with start date &amp;gt; today =&amp;nbsp; "Scheduled"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;the duration in hours tied to those Completed/Scheduled events (table A)&lt;/LI&gt;&lt;LI&gt;the sum of hours completed QTD + hours Scheduled QTD (let's call it "Hours Booked or Completed")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Deducting the "Hours Booked or Completed" value from the hard-coded maximum allowable hours (160) that any one trainer has available in any one quarter should then allow me to arrive at a % of Quarterly Hours Used value, which would prove useful when answering the question of which trainers have the capacity remaining to book them with future events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I contemplated bringing the trainer_id value (table B) into the events table (table A) via LOOKUPVALUE, but was unsure if there was a more elegant solution that virtualized this relationship.&lt;BR /&gt;&lt;BR /&gt;Lastly, it's worth noting that an event can have multiple trainers assigned to it. In these instances, I'd like to avoid counting a single event with duration = 8 hours and &amp;gt;1 trainer assigned as 8 hours consumed by each assigned trainer, such that the duration of the event is split by the number of trainers assigned, i.e.,:&lt;BR /&gt;&lt;BR /&gt;If duration = 8 hours &amp;amp;&amp;amp; assigned trainer count = 1, then deduct 8 hours from trainer 1's capacity&lt;BR /&gt;If duration = 8 hours &amp;amp;&amp;amp; assigned trainer count = 2, then deduct 4 hours from trainer 1's capacity and 4 from trainer 2's capacity&lt;BR /&gt;If duration = 8 hours &amp;amp;&amp;amp; assigned trainer count = 3, then deduct 2.67 hours from t1, 2.67 hours from t2, 2.67 from t3&lt;BR /&gt;...etc.&lt;BR /&gt;&lt;BR /&gt;Link to sample data below. Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Trainer Capacity Summary - Sample" href="https://docs.google.com/spreadsheets/d/e/2PACX-1vQN_fkXz6O0k7Xp1rlQ1kQpEy8n58wfmu_F9omOZ4XPhQdMbjJRJ3J8LEX_86CK_NmuGcc0BzIvqFFi/pubhtml" target="_blank" rel="noopener"&gt;sample data&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;EDIT: &lt;A href="https://docs.google.com/spreadsheets/d/19Ykfdeld6Ig1RmSY_do99wup2NY0Xb-1qTEJz-xTlh4/edit?usp=sharing" target="_self"&gt;Public link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Dec 2020 18:07:11 GMT</pubDate>
    <dc:creator>Drewbysnackz</dc:creator>
    <dc:date>2020-12-05T18:07:11Z</dc:date>
    <item>
      <title>Summarizing Capacity Allocated &amp; Capacity Remaining for a Bookable Resource</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Capacity-Allocated-amp-Capacity-Remaining-for-a/m-p/1534299#M30136</link>
      <description>&lt;P&gt;Hi all - long time lurker, first time poster, so apologies in advance if this is the incorrect sub:&lt;BR /&gt;&lt;BR /&gt;I am hoping to summarize completed/scheduled event duration data with values from three tables.&lt;BR /&gt;&lt;BR /&gt;table A - Events: Contains running registry of training events.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calculated columns use DATEDIFF to return event duration (event end date/time - event start date/time) in hours and minutes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;table B - Trainer Logs&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Maps the user guid of a bookable resource (in this case, a contact with a "Trainer" designation) to the guid of the event in table A in which that Trainer's time was used&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;table C - Trainer Capacity&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Trainer's name, guid, and a hard-coded quarterly hours value (160)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is relatively straightforward:&lt;BR /&gt;For each unique trainer ID + trainer name in table B/C, summarize:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the QTD count of Completed vs. Scheduled events (from table A).&lt;UL&gt;&lt;LI&gt;Any event with a end date &amp;lt; today = "Completed"; with start date &amp;gt; today =&amp;nbsp; "Scheduled"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;the duration in hours tied to those Completed/Scheduled events (table A)&lt;/LI&gt;&lt;LI&gt;the sum of hours completed QTD + hours Scheduled QTD (let's call it "Hours Booked or Completed")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Deducting the "Hours Booked or Completed" value from the hard-coded maximum allowable hours (160) that any one trainer has available in any one quarter should then allow me to arrive at a % of Quarterly Hours Used value, which would prove useful when answering the question of which trainers have the capacity remaining to book them with future events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I contemplated bringing the trainer_id value (table B) into the events table (table A) via LOOKUPVALUE, but was unsure if there was a more elegant solution that virtualized this relationship.&lt;BR /&gt;&lt;BR /&gt;Lastly, it's worth noting that an event can have multiple trainers assigned to it. In these instances, I'd like to avoid counting a single event with duration = 8 hours and &amp;gt;1 trainer assigned as 8 hours consumed by each assigned trainer, such that the duration of the event is split by the number of trainers assigned, i.e.,:&lt;BR /&gt;&lt;BR /&gt;If duration = 8 hours &amp;amp;&amp;amp; assigned trainer count = 1, then deduct 8 hours from trainer 1's capacity&lt;BR /&gt;If duration = 8 hours &amp;amp;&amp;amp; assigned trainer count = 2, then deduct 4 hours from trainer 1's capacity and 4 from trainer 2's capacity&lt;BR /&gt;If duration = 8 hours &amp;amp;&amp;amp; assigned trainer count = 3, then deduct 2.67 hours from t1, 2.67 hours from t2, 2.67 from t3&lt;BR /&gt;...etc.&lt;BR /&gt;&lt;BR /&gt;Link to sample data below. Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Trainer Capacity Summary - Sample" href="https://docs.google.com/spreadsheets/d/e/2PACX-1vQN_fkXz6O0k7Xp1rlQ1kQpEy8n58wfmu_F9omOZ4XPhQdMbjJRJ3J8LEX_86CK_NmuGcc0BzIvqFFi/pubhtml" target="_blank" rel="noopener"&gt;sample data&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;EDIT: &lt;A href="https://docs.google.com/spreadsheets/d/19Ykfdeld6Ig1RmSY_do99wup2NY0Xb-1qTEJz-xTlh4/edit?usp=sharing" target="_self"&gt;Public link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 18:07:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Capacity-Allocated-amp-Capacity-Remaining-for-a/m-p/1534299#M30136</guid>
      <dc:creator>Drewbysnackz</dc:creator>
      <dc:date>2020-12-05T18:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing Capacity Allocated &amp; Capacity Remaining for a Bookable Resource</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Capacity-Allocated-amp-Capacity-Remaining-for-a/m-p/1619546#M32683</link>
      <description>&lt;P&gt;ok. what is your question?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 03:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-Capacity-Allocated-amp-Capacity-Remaining-for-a/m-p/1619546#M32683</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-01-25T03:00:44Z</dc:date>
    </item>
  </channel>
</rss>

