<?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 Re: Applying factor to monthly totals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-factor-to-monthly-totals/m-p/3050309#M105040</link>
    <description>&lt;P&gt;Further update....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to address the adjustment to leave I have tweaked the measure above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;April = CALCULATE
   SUMX('Staffing',((12 / SUM('Staffing'[MonthsPresent])) * 0.065) * SUM('Plans'[Days])),
   FILTER('Plans','Plans'[Activity]&amp;lt;&amp;gt;"Leave")
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have then just added a new measure for leave (21.67 is days expected per month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;April Leave = 21.67 - 'Plans'[April]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm concerned this is a very inflexible and that I currently have 24 separate measures. I imagine there is a much better way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also really struggling with how I can adjust the month factor based on other criteria such as 'Staffing' Location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 12:14:31 GMT</pubDate>
    <dc:creator>metcala</dc:creator>
    <dc:date>2023-01-30T12:14:31Z</dc:date>
    <item>
      <title>Applying factor to monthly totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-factor-to-monthly-totals/m-p/3047289#M104798</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just after a bit of guidance in how I can apportion out a full year plan against each month and apply a factor for down time in certain months. It also needs to ensure new starters are factored in i.e. don't get a full year plan and anyone working part time is allocated the correct apportionment. The data is structured as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Data Structure&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Plan Table&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Employee ID&lt;/P&gt;&lt;P&gt;Activity&lt;/P&gt;&lt;P&gt;Days allocated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Staffing Table&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Employee ID&lt;/P&gt;&lt;P&gt;Employee name&lt;/P&gt;&lt;P&gt;Start Date&lt;/P&gt;&lt;P&gt;End Date&lt;/P&gt;&lt;P&gt;FTE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Proposed Solution&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Slicer by Employee Name&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;Activity&lt;/TD&gt;&lt;TD&gt;April&lt;/TD&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;June&lt;/TD&gt;&lt;TD&gt;July&amp;nbsp;&l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P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;April =
IF('Staffing'[Start]&amp;lt;DATE(2023,4,1) &amp;amp;&amp;amp; 'Staffing'[End]&amp;gt;DATE(2023,4,30,
   SUMX('Plans','Plans'[Days]*0.065),
   0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This currently isn't working and wanted to get this sorted before looking at FTE. Assume I would just added a nested if to consider FTE but if there is a better way any pointers would really be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Assumptions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;6.5% during April and December and 8.7% for all other months&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any guidance!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:38:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-factor-to-monthly-totals/m-p/3047289#M104798</guid>
      <dc:creator>metcala</dc:creator>
      <dc:date>2023-01-27T13:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Applying factor to monthly totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-factor-to-monthly-totals/m-p/3050153#M105028</link>
      <description>&lt;P&gt;Not sure if this will be of use to anyone but think I managed to solve part of the problem, definitely not the most elegant solution....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created a Calculated Column on the Staffing for number of months present. Then created a measure for each month e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;April = ((12 / SUM('Staffing'[MonthsPresent])) * 0.065) * SUM('Plans'[Days])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still doesn't resolve FTE but thought I'd give an update. Another&amp;nbsp;issue I do have is the factor is applying to all Activities including leave. Ideally, I would want the factor to apply to all Activities except leave and leave adjusted to make the days per month balance but struggling a bit with that.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 10:36:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-factor-to-monthly-totals/m-p/3050153#M105028</guid>
      <dc:creator>metcala</dc:creator>
      <dc:date>2023-01-30T10:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Applying factor to monthly totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-factor-to-monthly-totals/m-p/3050309#M105040</link>
      <description>&lt;P&gt;Further update....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to address the adjustment to leave I have tweaked the measure above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;April = CALCULATE
   SUMX('Staffing',((12 / SUM('Staffing'[MonthsPresent])) * 0.065) * SUM('Plans'[Days])),
   FILTER('Plans','Plans'[Activity]&amp;lt;&amp;gt;"Leave")
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have then just added a new measure for leave (21.67 is days expected per month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;April Leave = 21.67 - 'Plans'[April]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm concerned this is a very inflexible and that I currently have 24 separate measures. I imagine there is a much better way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also really struggling with how I can adjust the month factor based on other criteria such as 'Staffing' Location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 12:14:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Applying-factor-to-monthly-totals/m-p/3050309#M105040</guid>
      <dc:creator>metcala</dc:creator>
      <dc:date>2023-01-30T12:14:31Z</dc:date>
    </item>
  </channel>
</rss>

