<?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: Split Value between 12 next months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Value-between-12-next-months/m-p/1102495#M16194</link>
    <description>&lt;P&gt;Hi Darlove,&lt;/P&gt;&lt;P&gt;Thank for your respone. That seems a bit easier &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2020 07:31:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-22T07:31:48Z</dc:date>
    <item>
      <title>Split Value between 12 next months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Value-between-12-next-months/m-p/1096242#M15984</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this 'General Ledger Entry'-table which contains payment for a hotline agreements. The Hotline Agreement is valid from the payment date and the next year/12 months. And I therefore wants to split the values equally between these 12 months, where the Hotline Agreement is active, so I can compare this value to the time that is being used in support for this particular customer. However, these payments is yearly, and I therefore need to split these values equally between the next 12 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have all dates in this table, and I therefore have to use a datetable to do this. I have used following DAX-formular to split this value up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hotlinesplit 9 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var firstmonth =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FIRSTDATE('Date'[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var Budgetmonth = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATESINPERIOD('Date'[Date];firstmonth;-12;MONTH)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var BudgettoDivide =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-CALCULATE(SUM('General Ledger Entry'[Amount]);'General Ledger Entry'[G_L Account No_] = 4040;'Date'[Date] IN Budgetmonth)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var NumofMonths =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(DISTINCTCOUNT('Date'[Month Number of Year]);Budgetmonth)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var monthlyamount =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Divide(BudgettoDivide;NumofMonths)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sumx(values('Date'[Month Number Of Year]);monthlyamount)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Its seems to work okay, and it seems like that the values is being equally divided over the next 12 months. But the issue is, when I in my view filters on a specific year, it won't sum the monthly values, which I just have divided it into.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;As you see in the picture, I have tried to split 61.766, which is paid May 2019 and May 2020. And I have split them into the next 12 months 5.147,17, but the grand total is blank. Further, when I in the table below, filters after year it is either blank or it divide the value wrong. It should sum it up, based on the division into months&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any Ideas?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 May 2020 12:07:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Value-between-12-next-months/m-p/1096242#M15984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-19T12:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Split Value between 12 next months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Value-between-12-next-months/m-p/1097139#M16056</link>
      <description>Why not create a table with the monthly splits? It's very easy with Power Query. If you do this, your measures will be as simple as:&lt;BR /&gt;&lt;BR /&gt;SUM( T[Column] )&lt;BR /&gt;&lt;BR /&gt;and it'll be as fast as it can be.&lt;BR /&gt;&lt;BR /&gt;Please do not make your life more complicated than it already is.&lt;BR /&gt;&lt;BR /&gt;Your table should read something like:&lt;BR /&gt;&lt;BR /&gt;Acc No. | Month | Payment&lt;BR /&gt;&lt;BR /&gt;Then store your Acc No.'s with all their attributes (like the total sum) in a dimension and just create the right relationships between the above table, your Date table, and all the other relevant dimensions.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 20 May 2020 02:29:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Value-between-12-next-months/m-p/1097139#M16056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-20T02:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Split Value between 12 next months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Value-between-12-next-months/m-p/1102495#M16194</link>
      <description>&lt;P&gt;Hi Darlove,&lt;/P&gt;&lt;P&gt;Thank for your respone. That seems a bit easier &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 07:31:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Value-between-12-next-months/m-p/1102495#M16194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-22T07:31:48Z</dc:date>
    </item>
  </channel>
</rss>

