<?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: Spreading Budgeted Cost Across Months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/751944#M2811</link>
    <description>&lt;P&gt;Actually, I know what's wrong... Change the expression to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[Cost] / ( Number.From( [Finish] - [#"Start "] ) + 1 )&lt;/PRE&gt;&lt;P&gt;Subtracting a date from a date in M (Power Query's language) creates a duration and a duration cannot be added to a number (+1). But you can convert a duration to a number using the function Number.From. Hope this finally is the last brick to build your house.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 21:07:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-29T21:07:01Z</dc:date>
    <item>
      <title>Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/736892#M2086</link>
      <description>&lt;P&gt;I have a project which is resource loaded with manpower and fixed costs and I'm working on a report to project when we will spend the dollars. I searched this forum and found instructions to do this by creating a calendar table and crossjoining my original table and the calendar table.&amp;nbsp; (&lt;A href="https://community.powerbi.com/t5/Desktop/Splitting-Values-between-months-of-two-dates/m-p/181278#M79384" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Splitting-Values-between-months-of-two-dates/m-p/181278#M79384&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;However, I'm not getting the correct results.&amp;nbsp; The matrix looks the way I want it to, but it is missing any values which don't begin on or span the first day of the month.&amp;nbsp; How can I make it display values which fall at any point in the month, not just on the first day of the month?&amp;nbsp; I would appreciate any help anyone can give me.&amp;nbsp; Thank you!&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 20:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/736892#M2086</guid>
      <dc:creator>juliecornelius</dc:creator>
      <dc:date>2019-07-10T20:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/739267#M2212</link>
      <description>&lt;P&gt;Hi, can you add sample tables (in format that can be copied to PowerBI) from your model with anonymised data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As described here:&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="How to Get Your Question Answered Quickly" uid="38490" url="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/m-p/38490#U38490"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 02:59:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/739267#M2212</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-07-14T02:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/739974#M2222</link>
      <description>&lt;P&gt;Thank you for your help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a sample of the data:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Task Name&lt;/TD&gt;&lt;TD&gt;Start&lt;/TD&gt;&lt;TD&gt;Finish&lt;/TD&gt;&lt;TD&gt;Cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Issue Req&lt;/TD&gt;&lt;TD&gt;7/15/2019&lt;/TD&gt;&lt;TD&gt;7/16/2019&lt;/TD&gt;&lt;TD&gt;$315.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Issue PO&lt;/TD&gt;&lt;TD&gt;7/17/2019&lt;/TD&gt;&lt;TD&gt;7/30/2019&lt;/TD&gt;&lt;TD&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;EE1 Fab and Delivery&lt;/TD&gt;&lt;TD&gt;7/31/2019&lt;/TD&gt;&lt;TD&gt;1/23/2020&lt;/TD&gt;&lt;TD&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Receive EE1&lt;/TD&gt;&lt;TD&gt;1/24/2020&lt;/TD&gt;&lt;TD&gt;1/24/2020&lt;/TD&gt;&lt;TD&gt;$630,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Issue Req&lt;/TD&gt;&lt;TD&gt;9/25/2019&lt;/TD&gt;&lt;TD&gt;9/26/2019&lt;/TD&gt;&lt;TD&gt;$315.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Issue PO&lt;/TD&gt;&lt;TD&gt;9/27/2019&lt;/TD&gt;&lt;TD&gt;10/10/2019&lt;/TD&gt;&lt;TD&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; EE2 Fab and Delivery&lt;/TD&gt;&lt;TD&gt;10/11/2019&lt;/TD&gt;&lt;TD&gt;1/8/2020&lt;/TD&gt;&lt;TD&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Receive EE2&lt;/TD&gt;&lt;TD&gt;1/9/2020&lt;/TD&gt;&lt;TD&gt;1/9/2020&lt;/TD&gt;&lt;TD&gt;$165,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Issue Req&lt;/TD&gt;&lt;TD&gt;9/25/2019&lt;/TD&gt;&lt;TD&gt;9/26/2019&lt;/TD&gt;&lt;TD&gt;$315.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Issue PO&lt;/TD&gt;&lt;TD&gt;9/27/2019&lt;/TD&gt;&lt;TD&gt;10/10/2019&lt;/TD&gt;&lt;TD&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; EE3 Fab and Delivery&lt;/TD&gt;&lt;TD&gt;10/11/2019&lt;/TD&gt;&lt;TD&gt;12/9/2019&lt;/TD&gt;&lt;TD&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Receive EE3&lt;/TD&gt;&lt;TD&gt;12/10/2019&lt;/TD&gt;&lt;TD&gt;12/10/2019&lt;/TD&gt;&lt;TD&gt;$26,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Issue Req&lt;/TD&gt;&lt;TD&gt;9/25/2019&lt;/TD&gt;&lt;TD&gt;9/26/2019&lt;/TD&gt;&lt;TD&gt;$640.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Issue PO&lt;/TD&gt;&lt;TD&gt;9/27/2019&lt;/TD&gt;&lt;TD&gt;10/10/2019&lt;/TD&gt;&lt;TD&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; EE4 Fab and Delivery&lt;/TD&gt;&lt;TD&gt;10/11/2019&lt;/TD&gt;&lt;TD&gt;12/9/2019&lt;/TD&gt;&lt;TD&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; Receive EE4&lt;/TD&gt;&lt;TD&gt;12/10/2019&lt;/TD&gt;&lt;TD&gt;12/10/2019&lt;/TD&gt;&lt;TD&gt;$230,000.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started with a table from MS Project Web App called Tasks, then created a calendar and crossjoined it to the Tasks table to create a table called Table.&amp;nbsp; All data is now being pulled from from this Table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 12:47:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/739974#M2222</guid>
      <dc:creator>juliecornelius</dc:creator>
      <dc:date>2019-07-15T12:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/740018#M2223</link>
      <description>&lt;P&gt;OK, that's much better. And how exactly do you want to allocate the data? from what I can see first row would look like this:&lt;/P&gt;
&lt;TABLE width="298"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="170"&gt;Task Name&lt;/TD&gt;
&lt;TD width="64"&gt;Date&lt;/TD&gt;
&lt;TD width="64"&gt;Cost&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&amp;nbsp; Issue Req&lt;/TD&gt;
&lt;TD&gt;7/15/2019&lt;/TD&gt;
&lt;TD&gt;157.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Task Name&lt;/TD&gt;
&lt;TD&gt;7/16/2019&lt;/TD&gt;
&lt;TD&gt;157.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;is that correct?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 13:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/740018#M2223</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-07-15T13:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/740029#M2224</link>
      <description>&lt;P&gt;I'm trying to allocate the cost into monthly buckets. No date, just month and year.&amp;nbsp; I think that's where I'm messed up. My dates are showing the first of each month, so if the cost isn't on the first or straddling the first of a month, it doesn't show.&amp;nbsp; I'd like it to look like this, but without the day...just all costs that would occur in May, all costs in June, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 13:47:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/740029#M2224</guid>
      <dc:creator>juliecornelius</dc:creator>
      <dc:date>2019-07-15T13:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/742851#M2356</link>
      <description>&lt;P&gt;you can still do it with the same method, you just need to limit the calendar to the 1st of each month, e.g. like this:&lt;/P&gt;
&lt;PRE&gt;Budget = 
FILTER(
    CROSSJOIN('Table' ,FILTER('Calendar', DAY('Calendar'[Date]) = 1)), 
    'Calendar'[Date] &amp;gt;= DATE(YEAR('Table'[Start]), MONTH('Table'[Start]), 1)
     &amp;amp;&amp;amp; 'Calendar'[Date] &amp;lt;= ENDOFMONTH('Table'[Finish])    
)&lt;/PRE&gt;
&lt;P&gt;then you just need to spread the cost&lt;/P&gt;
&lt;DIV style="border-radius: 1px; border: solid #CCCCCC 1px; background: #fafafa url('https://community.powerbi.com/t5/image/serverpage/image-id/86505i901712D27DD154D7/image-size/small?v...') no-repeat right 10px center; background-size: auto 60%;"&gt;Did I answer your question? &lt;STRONG style="margin-right: 100px;"&gt; Mark my post as a solution!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;Proud to be a Datanaut!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jul 2019 04:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/742851#M2356</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-07-18T04:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/743664#M2405</link>
      <description>&lt;P&gt;Thank you! I tried that, but I get this error.&lt;/P&gt;&lt;P&gt;Ideas?&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 17:00:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/743664#M2405</guid>
      <dc:creator>juliecornelius</dc:creator>
      <dc:date>2019-07-18T17:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/743798#M2419</link>
      <description>&lt;P&gt;ENDOFMONTH is a time-intelligence function and will only work correctly on a proper Date table. You cannot use it on a column in any other table. If you do, either you'll get an error or the returned value will be unreliable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 20:29:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/743798#M2419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-18T20:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/743822#M2420</link>
      <description>&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mate, first of all, you should have a Date table that spans whole years that can be found in the Task[TaskStartDate] and Task[TaskEndDate] columns. This Date table should be disconnected from the table but you should mark it as a Date table in the model so that time-intel works correctly. The Date table should have all the columns that you can find in a proper Date table (please find out how to build a good Date table for DAX's needs). You can then slice by months, days, weeks, semesters, years... Whatever you've defined in your columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, what happens if you have a task that starts on 2019-06-15 and ends on 2019-07-10 and you want to calculate the allocation for the month of June and for the month of July? Should it allocate the total amount linearly (call the amount K), according to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;allocation in June -&amp;gt; K * (30 June - 15 June + 1) / (10 July - 15 June + 1)&lt;/P&gt;&lt;P&gt;allocation in July -&amp;gt; K * (10 July - 30 June ) /&amp;nbsp;(10 July - 15 June + 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is the case, then you can calculate the allocations as follows:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;Budget =&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; __periodStart = &lt;SPAN&gt;MIN&lt;/SPAN&gt; ( &lt;SPAN&gt;Dates[Date]&lt;/SPAN&gt; )&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; __periodEnd = &lt;SPAN&gt;MAX&lt;/SPAN&gt; ( &lt;SPAN&gt;Dates[Date]&lt;/SPAN&gt; )&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; __allocationHelper =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt; (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;T,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"Allocation"&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;var&lt;/SPAN&gt; __daysInPeriod =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;MAX&lt;/SPAN&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;0&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;MIN&lt;/SPAN&gt; ( &lt;SPAN&gt;T[Finish]&lt;/SPAN&gt;, __periodEnd )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- &lt;SPAN&gt;MAX&lt;/SPAN&gt; ( &lt;SPAN&gt;T[Start]&lt;/SPAN&gt;, __periodStart )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+ &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;var&lt;/SPAN&gt; __totalDuration = &lt;SPAN&gt;T[Finish]&lt;/SPAN&gt; - &lt;SPAN&gt;T[Start]&lt;/SPAN&gt; + &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;T[Cost]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* &lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__daysInPeriod,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__totalDuration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;T[Cost]&lt;/SPAN&gt; &amp;gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; __allocation =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__allocationHelper,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;[Allocation]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__allocation&lt;/PRE&gt;&lt;P&gt;But, honestly, you should do something else... &lt;STRONG&gt;You should change the data model&lt;/STRONG&gt;. For each of the tasks you should create as many rows as there are days between the start and finish dates and allocate the amount to each day; so that would add 2 columns to your design: AllocationDate and AllocatedAmount. For each day, the amount would be K * 1/(finish - start + 1). Then, you should connect the Date table to the AllocatedDate column in a many-to-one fashion. What do you achieve through this? Well, you can now create this measure:&lt;/P&gt;&lt;PRE&gt;Budget = SUM ( T[AllocatedAmount] )&lt;/PRE&gt;&lt;P&gt;and be done with it. This is the best model you can have and it'll be blazingly fast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you see the elegance and simplicity of the solution for the &lt;STRONG&gt;RIGHT DATA MODEL&lt;/STRONG&gt;? You know what to do now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 21:26:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/743822#M2420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-18T21:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/744431#M2442</link>
      <description>Try replacing ENDOFMONTH(Table[Column]) with EOMONTH(Table[Column], 0)</description>
      <pubDate>Fri, 19 Jul 2019 11:21:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/744431#M2442</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-07-19T11:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/746091#M2503</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried changing to EOMONTH, but got a different error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 20:32:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/746091#M2503</guid>
      <dc:creator>juliecornelius</dc:creator>
      <dc:date>2019-07-22T20:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/746092#M2504</link>
      <description>&lt;P&gt;I'm afraid you've lost me! I'm pulling data from Project Web App, so I don't know how to add extra rows to the data model. I'm in a class this week and maybe this is something I'll learn.&amp;nbsp; At the moment I'm feeling a bit hopeless about getting this report built. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 20:35:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/746092#M2504</guid>
      <dc:creator>juliecornelius</dc:creator>
      <dc:date>2019-07-22T20:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/746964#M2532</link>
      <description>&lt;P&gt;I have given you a whole solution... but for some reason you don't listen :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 16:59:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/746964#M2532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-23T16:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/747027#M2539</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; It's not that I'm not listening to you...I am.&amp;nbsp; I've read your message a dozen times.&amp;nbsp; I simply don't understand it.&amp;nbsp; You're a much more advanced user than am I, and I don't know how to create rows in a model where the data is coming from Microsoft Project.&amp;nbsp; I do appreciate your time and effort, I just don't know how to do what you're telling me to do.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 18:36:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/747027#M2539</guid>
      <dc:creator>juliecornelius</dc:creator>
      <dc:date>2019-07-23T18:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/747696#M2563</link>
      <description>&lt;P&gt;OK. I've never worked with MS Project... but is it not true that you have to first import data from it into Power BI? If you do, then you should be able to use Power Query to shape your tables/data. And if you can do this, then you can do anything :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, tell me if you can just import data and then use PQ to shape it. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 10:13:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/747696#M2563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-24T10:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/747916#M2571</link>
      <description>&lt;P&gt;I get data from Project Web App via SQL Server Database.&amp;nbsp; I can then use Power Query to shape it.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 13:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/747916#M2571</guid>
      <dc:creator>juliecornelius</dc:creator>
      <dc:date>2019-07-24T13:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/748213#M2583</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; I was able to successfully figure out how to insert a row for each date between start and finish date, and I labeled that column Allocation Dates. I created another column for Allocated Amount, [Cost]*1/([Finish]-[#"Start "]+1)but I'm getting an Expression Error: We cannot apply operator + to types Duration and Number. Any ideas what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 18:26:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/748213#M2583</guid>
      <dc:creator>juliecornelius</dc:creator>
      <dc:date>2019-07-24T18:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/750246#M2675</link>
      <description>You are missing ', 0' as second argument in EOMONTH, and you should remove MONTH in the EOMONTH as here&lt;BR /&gt;&lt;BR /&gt;&amp;lt;=EOMONTH(Tasks[TaskFinishDate], 0)</description>
      <pubDate>Fri, 26 Jul 2019 15:54:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/750246#M2675</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2019-07-26T15:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/750294#M2676</link>
      <description>&lt;P&gt;I understand you're doing it in Power Query. The error says that there's a mismatch between types. From this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Cost]*1/([Finish]-[#"Start "]+1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it looks like you cannot do [Finish] - [#"Start "]. These two (whatever they are) have incompatible types. You have to make sure that the operation "+/-" is allowed between the two operands in question. Since this is PQ and I don't exactly know what you're doing I'm not able to be more helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But you're on your way to the optimal solution for sure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 17:03:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/750294#M2676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-26T17:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Spreading Budgeted Cost Across Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/751944#M2811</link>
      <description>&lt;P&gt;Actually, I know what's wrong... Change the expression to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[Cost] / ( Number.From( [Finish] - [#"Start "] ) + 1 )&lt;/PRE&gt;&lt;P&gt;Subtracting a date from a date in M (Power Query's language) creates a duration and a duration cannot be added to a number (+1). But you can convert a duration to a number using the function Number.From. Hope this finally is the last brick to build your house.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 21:07:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Spreading-Budgeted-Cost-Across-Months/m-p/751944#M2811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-29T21:07:01Z</dc:date>
    </item>
  </channel>
</rss>

