<?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: Show expected turnover for recurring payments in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4265454#M169253</link>
    <description>&lt;LI-CODE lang="markup"&gt;Amt =
VAR a =
    SUMMARIZECOLUMNS (
        DateTable[Year],
        DateTable[MonthName],
        DateTable[Monthnumber],
        Donations[Donationnumber],
        Donations[Startdate],
        Donations[Enddate],
        Donations[Amount],
        Donations[Frequency],
        "md", MIN ( DateTable[Date] )
    )
VAR b =
    ADDCOLUMNS (
        a,
        "amt",
            IF (
                [md] IN CALENDAR ( [Startdate], COALESCE ( [Enddate], dt"2030-12-31" ) ),
                SWITCH (
                    [Frequency],
                    "Month", [Amount],
                    "Year", IF ( MOD ( [Monthnumber], 12 ) = MOD ( MONTH ( [Startdate] ), 12 ), [Amount] ),
                    "Quarter", IF ( MOD ( [Monthnumber], 3 ) = MOD ( MONTH ( [Startdate] ), 3 ), [Amount] ),
                    "Half year", IF ( MOD ( [Monthnumber], 6 ) = MOD ( MONTH ( [Startdate] ), 6 ), [Amount] ),
                    0
                )
            )
    )
RETURN
    SUMX ( b, [amt] )&lt;/LI-CODE&gt;
&lt;P&gt;see attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 11:30:25 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-10-31T11:30:25Z</dc:date>
    <item>
      <title>Show expected turnover for recurring payments</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4259480#M169250</link>
      <description>&lt;P&gt;Hello fellow community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are a charity fund with income based on (amongst others) structural donations. Each month, quarter, half year or year someone will donate an amount to us. This is captured in a donations table, with the following columns:&lt;/P&gt;&lt;P&gt;- startdate&lt;/P&gt;&lt;P&gt;- enddate&lt;/P&gt;&lt;P&gt;- amount per donation&lt;/P&gt;&lt;P&gt;- frequency&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a donation will be done every quarter and starts in October, it will come back in January, April and July as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like to do is create a visual where I show the expected income per month. Donations start as of startdate and stop after reaching an enddate. I've tried to explain the same thing to copilot but without any luck. I hope someone in here knows how to pull this off &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 13:40:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4259480#M169250</guid>
      <dc:creator>Silvermountain</dc:creator>
      <dc:date>2024-10-27T13:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show expected turnover for recurring payments</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4259534#M169251</link>
      <description>&lt;P&gt;That's a standard amortization pattern, and you do that in Power Query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 18:06:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4259534#M169251</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-27T18:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show expected turnover for recurring payments</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4264316#M169252</link>
      <description>&lt;P&gt;Hi Ibendlin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example something like this:&amp;nbsp;&lt;A href="https://we.tl/t-s8MMWX5nZa" target="_blank" rel="noopener"&gt;https://we.tl/t-s8MMWX5nZa&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case I expect:&lt;/P&gt;&lt;P&gt;- The first donation comes back every month&lt;/P&gt;&lt;P&gt;- The second every year, but only in March&lt;/P&gt;&lt;P&gt;- The 3rd every quarter (feb, may, aug and nov)&lt;/P&gt;&lt;P&gt;- The 4th every 6 months (jan and july)&lt;/P&gt;&lt;P&gt;Expected turnover in January would be €50, in februari €35 etc. But only if the enddate wasn't reached yet in that month+year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 16:50:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4264316#M169252</guid>
      <dc:creator>Silvermountain</dc:creator>
      <dc:date>2024-10-30T16:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Show expected turnover for recurring payments</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4265454#M169253</link>
      <description>&lt;LI-CODE lang="markup"&gt;Amt =
VAR a =
    SUMMARIZECOLUMNS (
        DateTable[Year],
        DateTable[MonthName],
        DateTable[Monthnumber],
        Donations[Donationnumber],
        Donations[Startdate],
        Donations[Enddate],
        Donations[Amount],
        Donations[Frequency],
        "md", MIN ( DateTable[Date] )
    )
VAR b =
    ADDCOLUMNS (
        a,
        "amt",
            IF (
                [md] IN CALENDAR ( [Startdate], COALESCE ( [Enddate], dt"2030-12-31" ) ),
                SWITCH (
                    [Frequency],
                    "Month", [Amount],
                    "Year", IF ( MOD ( [Monthnumber], 12 ) = MOD ( MONTH ( [Startdate] ), 12 ), [Amount] ),
                    "Quarter", IF ( MOD ( [Monthnumber], 3 ) = MOD ( MONTH ( [Startdate] ), 3 ), [Amount] ),
                    "Half year", IF ( MOD ( [Monthnumber], 6 ) = MOD ( MONTH ( [Startdate] ), 6 ), [Amount] ),
                    0
                )
            )
    )
RETURN
    SUMX ( b, [amt] )&lt;/LI-CODE&gt;
&lt;P&gt;see attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 11:30:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4265454#M169253</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-31T11:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Show expected turnover for recurring payments</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4268786#M169260</link>
      <description>&lt;P&gt;That's perfect, thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 08:20:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-expected-turnover-for-recurring-payments/m-p/4268786#M169260</guid>
      <dc:creator>Silvermountain</dc:creator>
      <dc:date>2024-11-04T08:20:31Z</dc:date>
    </item>
  </channel>
</rss>

