<?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: making a comparison between two years for Accounts Receivable in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4263659#M168992</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;your formula returns an error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The value for Invoice Date cannot be determined. Either the column doesn't exist, or there is no current row for this column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the same goes for PaymentDate.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 09:54:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-30T09:54:28Z</dc:date>
    <item>
      <title>making a comparison between two years for Accounts Receivable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4250703#M168295</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to make a table which displays how many invoices are still open at the end of each month in PowerBI. I got the task to create a visualisation based on from an ERP software my company is using since they want more control over the visualisation. see following picture:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The diagram shows how much is still open at the end of the month Jan, Feb, Mar, and so on during 2 different years.&lt;BR /&gt;&lt;BR /&gt;I have created a table that includes Debtor code and name, Invoice date, Payment date, and amount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I created a matrix based on the data available:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the following formula:&lt;/P&gt;&lt;P&gt;Sum Debits =&lt;/P&gt;&lt;P&gt;SUM('DebtorsInvoices’[Amount])&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;&lt;P&gt;Which displays the total value correctly. For example I take code 100034 and on January. When I try doing it in excel, I see these values amounted to 95.945:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, what I want is the snapshot amount of open invoices during a specific year. For example, I want to see the amount of unpaid invoices during January 2023. In Excel, I would custom filter the invoice date to before 01/02/2023 and payment date either greater than 31/01/2023 or blank which will filter the invoice like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which equals to &amp;nbsp;20.282. How can I achieve this in PowerBI? I tried using the formula:&lt;BR /&gt;&lt;BR /&gt;OpenInvoicesByMonth =&lt;/P&gt;&lt;P&gt;VAR _EndOfCurrentMonth = MAX('DateTable'[Date])&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; SUM('DebtorsInvoices’[Amount]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Debiteuren mutaties',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Invoice Date] &amp;lt;= _EndOfCurrentMonth &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (ISBLANK([PaymentDate]) || [PaymentDate] &amp;gt; _EndOfCurrentMonth)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;But, that formula displays the result only for the following invoices:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I include the paid invoices as well?&lt;BR /&gt;&lt;BR /&gt;Thank you for your assistance, and please bear with me as I am still new to PowerBI.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 11:37:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4250703#M168295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-21T11:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: making a comparison between two years for Accounts Receivable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4251019#M168315</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;You can try the following measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;OpenInvoicesByMonth =

VAR _EndOfCurrentMonth = MAX('DateTable'[Date])

RETURN

CALCULATE(

    SUM('DebtorsInvoices’[Amount]),

    FILTER(

        ALL('Debiteuren mutaties'),

        [Invoice Date] &amp;lt;= _EndOfCurrentMonth &amp;amp;&amp;amp;

        (ISBLANK([PaymentDate]) || [PaymentDate] &amp;gt; _EndOfCurrentMonth) &amp;amp;&amp;amp;
        
        'Debiteuren mutaties'[Code] = MAX('Debiteuren mutaties'[Code])

    )

)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you~&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 14:37:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4251019#M168315</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-10-21T14:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: making a comparison between two years for Accounts Receivable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4252089#M168389</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="738384" data-lia-user-login="xifeng_L" class="lia-mention lia-mention-user"&gt;xifeng_L&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;BR /&gt;&lt;BR /&gt;I tried using the formula you provided but it returns me this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 07:21:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4252089#M168389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-22T07:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: making a comparison between two years for Accounts Receivable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4263630#M168987</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the description, drag the Date table date column to slicer visual and select the date. Then, using the following dax formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;OpenInvoicesByMonth = 
VAR _EndOfCurrentMonth = MAX('DateTable'[Date]) 
RETURN 
CALCULATE( SUM('DebtorsInvoices'[Amount]), 'DebtorsInvoices'[InvoiceDate] &amp;lt;= _EndOfCurrentMonth &amp;amp;&amp;amp; ( ISBLANK('DebtorsInvoices'[PaymentDate]) || 'DebtorsInvoices'[PaymentDate] &amp;gt; _EndOfCurrentMonth ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 09:37:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4263630#M168987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-30T09:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: making a comparison between two years for Accounts Receivable</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4263659#M168992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;your formula returns an error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The value for Invoice Date cannot be determined. Either the column doesn't exist, or there is no current row for this column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the same goes for PaymentDate.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 09:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/making-a-comparison-between-two-years-for-Accounts-Receivable/m-p/4263659#M168992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-30T09:54:28Z</dc:date>
    </item>
  </channel>
</rss>

