<?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 Visualizing monthly payments until contract ends in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualizing-monthly-payments-until-contract-ends/m-p/3441146#M130716</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the following situation:&lt;/P&gt;&lt;P&gt;I'd like to create a bar graph, which shows me the montly payments i receive from different accounts, until their contracts end. In my table i have the information of the montly fee, the entire amount left to pay and the end date. If i'd create a table with the expiring date on the x axis and the monthly fee on the y-axis, obviously the graph will only show me, which monthly fee expires when.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i'd like the monthly fee to show up in graph every month, until the contract is expires. Hope it's explained well enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me out with this? Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 08:20:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-21T08:20:15Z</dc:date>
    <item>
      <title>Visualizing monthly payments until contract ends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualizing-monthly-payments-until-contract-ends/m-p/3441146#M130716</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the following situation:&lt;/P&gt;&lt;P&gt;I'd like to create a bar graph, which shows me the montly payments i receive from different accounts, until their contracts end. In my table i have the information of the montly fee, the entire amount left to pay and the end date. If i'd create a table with the expiring date on the x axis and the monthly fee on the y-axis, obviously the graph will only show me, which monthly fee expires when.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i'd like the monthly fee to show up in graph every month, until the contract is expires. Hope it's explained well enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me out with this? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 08:20:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualizing-monthly-payments-until-contract-ends/m-p/3441146#M130716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-21T08:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing monthly payments until contract ends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualizing-monthly-payments-until-contract-ends/m-p/3441193#M130718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a similar use case, the way I done it will enlarge your dataset, but you will get the result you want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a Payment Start Date? If not you will need to define this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open Power Query and go to your table&lt;/LI&gt;&lt;LI&gt;Create a custom column called Months and Divide the Total Amount by the Monthly amount. This will tell you how many months the payments run for. Format as Whole number&lt;/LI&gt;&lt;LI&gt;Then create another column called start date and add this code&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date.AddMonths(Date.From([EndDate]), -[Months])​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Then we will create a row for each monthly payment. Add a custom column, call it Intervals&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;List.Numbers(1,[Month])​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Expand the column and you will see a row for each month of the payment duration&lt;/LI&gt;&lt;LI&gt;We will now create another custom column to create a Payment date&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date.EndOfMonth(
  Date.AddMonths(
    [EndDate],
    0 - [Months] + [Intervals]
  )
)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Convert to date&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load the data into your report. If you are using a date table, create a one to many relationship on the date from the date table and the payent date in your table. Use the the columns from your date table in visuals or slicers. If you aren't using a date table, use the Payment date in your visuals or slicer. Ad the monthly fee to any visual to get the result you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post helps, then please Accept it as the solution&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 08:54:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualizing-monthly-payments-until-contract-ends/m-p/3441193#M130718</guid>
      <dc:creator>JoeBarry</dc:creator>
      <dc:date>2023-09-21T08:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizing monthly payments until contract ends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualizing-monthly-payments-until-contract-ends/m-p/3441213#M130719</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601805" data-lia-user-login="JoeBarry" class="lia-mention lia-mention-user"&gt;JoeBarry&lt;/a&gt;, thanks for the quick response. I think your way will also work. Seconds ago i just found a solution within the community, where the problem ist solved within one Dax Code line. See below:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Future-Monthly-Recurring-billing/m-p/3387353" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Future-Monthly-Recurring-billing/m-p/3387353&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But thanks, appreciate it!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 08:58:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualizing-monthly-payments-until-contract-ends/m-p/3441213#M130719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-21T08:58:59Z</dc:date>
    </item>
  </channel>
</rss>

