<?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 Dynamic % of hours worked by Calendar measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2203973#M51805</link>
    <description>&lt;P&gt;I need to report a % of billable hours worked by weeks, months, depending on how many hours the resource is available. Most people are hours&amp;nbsp; day but we have some part timers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my Employee table I have the Hours per day they are expected to work&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1WUMJc5DcaRbUhH08spNdVfFz8g4A5l7H1SvKsL1ITJs/edit#gid=0" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1WUMJc5DcaRbUhH08spNdVfFz8g4A5l7H1SvKsL1ITJs/edit#gid=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my worklogs table I have what they have entered as billable hours for each project they work on&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1Uword5KlJ7WJJZPJ_agdodsViQbdkJAvEdSaF5fab_w/edit#gid=0" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1Uword5KlJ7WJJZPJ_agdodsViQbdkJAvEdSaF5fab_w/edit#gid=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my calendar table I have the date breakdowns&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1Quq6mlax15D2KXwQpYQl0KzDlzlGYNXD/edit?usp=sharing&amp;amp;ouid=111016731196150377040&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1Quq6mlax15D2KXwQpYQl0KzDlzlGYNXD/edit?usp=sharing&amp;amp;ouid=111016731196150377040&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The report time dimensions will change – day, week, month, etc so I need the calc to be dynamic&lt;/P&gt;&lt;P&gt;All help appreciated – thanks in advance&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;</description>
    <pubDate>Tue, 23 Nov 2021 15:20:20 GMT</pubDate>
    <dc:creator>ctedesco3307</dc:creator>
    <dc:date>2021-11-23T15:20:20Z</dc:date>
    <item>
      <title>Dynamic % of hours worked by Calendar measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2203973#M51805</link>
      <description>&lt;P&gt;I need to report a % of billable hours worked by weeks, months, depending on how many hours the resource is available. Most people are hours&amp;nbsp; day but we have some part timers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my Employee table I have the Hours per day they are expected to work&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1WUMJc5DcaRbUhH08spNdVfFz8g4A5l7H1SvKsL1ITJs/edit#gid=0" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1WUMJc5DcaRbUhH08spNdVfFz8g4A5l7H1SvKsL1ITJs/edit#gid=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my worklogs table I have what they have entered as billable hours for each project they work on&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1Uword5KlJ7WJJZPJ_agdodsViQbdkJAvEdSaF5fab_w/edit#gid=0" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1Uword5KlJ7WJJZPJ_agdodsViQbdkJAvEdSaF5fab_w/edit#gid=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my calendar table I have the date breakdowns&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1Quq6mlax15D2KXwQpYQl0KzDlzlGYNXD/edit?usp=sharing&amp;amp;ouid=111016731196150377040&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1Quq6mlax15D2KXwQpYQl0KzDlzlGYNXD/edit?usp=sharing&amp;amp;ouid=111016731196150377040&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The report time dimensions will change – day, week, month, etc so I need the calc to be dynamic&lt;/P&gt;&lt;P&gt;All help appreciated – thanks in advance&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;</description>
      <pubDate>Tue, 23 Nov 2021 15:20:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2203973#M51805</guid>
      <dc:creator>ctedesco3307</dc:creator>
      <dc:date>2021-11-23T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic % of hours worked by Calendar measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2208683#M52070</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331333" data-lia-user-login="ctedesco3307" class="lia-mention lia-mention-user"&gt;ctedesco3307&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to display BillHours and Utill values of current month according to different weeks?&lt;/P&gt;
&lt;P&gt;May I know how you create relationships for these three tables?&lt;/P&gt;
&lt;P&gt;Could you please tell me how you create your Util Measure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. If you still have problems on it or I misunderstand your needs, please feel free to let us know. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 05:29:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2208683#M52070</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2021-11-26T05:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic % of hours worked by Calendar measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2210374#M52141</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="277465" data-lia-user-login="v-cazheng-msft" class="lia-mention lia-mention-user"&gt;v-cazheng-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately I'd like to display Bill Hours and util by the Date hierarchy, so starting from year, then drilling down to Quarters, Months, Weeks, Days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table relationhips are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Employee.UserID = Worklogs.AUTHOR_ACCOUNT_ID&lt;BR /&gt;Calendar Table.date = Worklogs.WDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current calc I have for Util is&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Util = &lt;/SPAN&gt;&lt;SPAN&gt;divide&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Worklogs[BillHours]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;40&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp; I'd like to replace the '40' - that represents the hours per week with a measure using the WrkHrs value from the employee table since not all emps work 40 hours a week and to make the measure dynamic.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please let me know if you need more intel.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 16:15:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2210374#M52141</guid>
      <dc:creator>ctedesco3307</dc:creator>
      <dc:date>2021-11-27T16:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic % of hours worked by Calendar measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2211340#M52182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331333" data-lia-user-login="ctedesco3307" class="lia-mention lia-mention-user"&gt;ctedesco3307&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your clearly description! I think I basically understand your needs. Please try this solution.&lt;/P&gt;
&lt;P&gt;1 Create a Calculated column in worklogs table&lt;/P&gt;
&lt;P&gt;RelatedWrkHrs = RELATED(Employee[WrkHrs])*5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 Make some changes to your Util Measure&lt;/P&gt;
&lt;P&gt;Util =&lt;/P&gt;
&lt;P&gt;VAR MidT =&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMMARIZE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; worklogs,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; worklogs[AUTHOR_NAME],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "div", DIVIDE ( SUM ( worklogs[BillHours] ), SUM ( worklogs[RelatedWrkHrs] ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMX (MidT, [div] )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, the result will look like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, please refer to the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. If you still have problems on it or I misunderstand your needs, please feel free to let us know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 06:37:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2211340#M52182</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2021-11-29T06:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic % of hours worked by Calendar measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2212183#M52228</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="277465" data-lia-user-login="v-cazheng-msft" class="lia-mention lia-mention-user"&gt;v-cazheng-msft&lt;/a&gt;&amp;nbsp; - I'm assuming the 5 means the amount of of working days in the week? Is there a way to make that dynamic where The calculation can SUM the amout of working days in whatever time interval I am looking at? I want to work with a date heirarchy that will drill down from Year, Quarter, Month, Week, Day So for example in the snapshot you have below, anyone who is 40 hours a week with at WrkHours value of 8 in the Employee table shoould show 100% If they are 32 hours a week with a&amp;nbsp; WrkHours value of 6.5 in the Employee table they should still show 100%&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 19:56:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2212183#M52228</guid>
      <dc:creator>ctedesco3307</dc:creator>
      <dc:date>2021-11-29T19:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic % of hours worked by Calendar measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2213694#M52309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331333" data-lia-user-login="ctedesco3307" class="lia-mention lia-mention-user"&gt;ctedesco3307&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this solution.&lt;/P&gt;
&lt;P&gt;1 Create a Measure to calculate workdays&lt;/P&gt;
&lt;P&gt;Workdays =&lt;/P&gt;
&lt;P&gt;CALCULATE (&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT ( 'calendar'[WeekDay] ),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALLSELECTED ( 'calendar' ),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER ( 'calendar', 'calendar'[WeekDay] &amp;lt; 6 )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 Create a Measure to calculate workhours&lt;/P&gt;
&lt;P&gt;WorkHours =&lt;/P&gt;
&lt;P&gt;SUMX (&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMMARIZE ( worklogs, worklogs[AUTHOR_NAME], worklogs[RelatedWrkHrs] ),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; worklogs[RelatedWrkHrs] * worklogs[Workdays]&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3 Create Util Measure&lt;/P&gt;
&lt;P&gt;Util =&lt;/P&gt;
&lt;P&gt;DIVIDE ( SUM ( worklogs[BillHours] ), [WorkHours] )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, the result looks like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fore more details, please refer the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. If you still have problems on it or I misunderstand your needs, please feel free to let us know. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 10:06:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2213694#M52309</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2021-11-30T10:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic % of hours worked by Calendar measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2214359#M52349</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="277465" data-lia-user-login="v-cazheng-msft" class="lia-mention lia-mention-user"&gt;v-cazheng-msft&lt;/a&gt;&amp;nbsp; this worked Great!!! thank you - I made one minor adjustment to count the Working Days in the calendar table rather then the weekdays and it worked perfect!! thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 15:39:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-of-hours-worked-by-Calendar-measure/m-p/2214359#M52349</guid>
      <dc:creator>ctedesco3307</dc:creator>
      <dc:date>2021-11-30T15:39:56Z</dc:date>
    </item>
  </channel>
</rss>

