<?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 Historical late payment with DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-late-payment-with-DAX/m-p/3048147#M104872</link>
    <description>&lt;P&gt;Hello, I have a table that contains the due date of a bill and the date of payment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to count each day the number of bills late on the day (even it's paid nowdays). Any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg: in 2022/07/11 ID 29040 was late (because the due date is 2022/07/10 and the payment occured on 2022/07/12)&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>Sat, 28 Jan 2023 02:13:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-28T02:13:51Z</dc:date>
    <item>
      <title>Historical late payment with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-late-payment-with-DAX/m-p/3048147#M104872</link>
      <description>&lt;P&gt;Hello, I have a table that contains the due date of a bill and the date of payment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to count each day the number of bills late on the day (even it's paid nowdays). Any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg: in 2022/07/11 ID 29040 was late (because the due date is 2022/07/10 and the payment occured on 2022/07/12)&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>Sat, 28 Jan 2023 02:13:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-late-payment-with-DAX/m-p/3048147#M104872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-28T02:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Historical late payment with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-late-payment-with-DAX/m-p/3048148#M104873</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , For any selected date ( prefer independent date table) &lt;/P&gt;
&lt;P&gt;Late payments are&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;countrows(filter(Table, [Payment Date] &amp;gt; [Due date] &amp;amp;&amp;amp; [Due Date] &amp;lt;= Max(Date[Date]) ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;before today&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;countrows(filter(Table, [Payment Date] &amp;gt; [Due date] &amp;amp;&amp;amp; [Due Date] &amp;lt;= today() ) )&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 02:21:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-late-payment-with-DAX/m-p/3048148#M104873</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-28T02:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Historical late payment with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-late-payment-with-DAX/m-p/3048157#M104877</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 02:34:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-late-payment-with-DAX/m-p/3048157#M104877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-28T02:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Historical late payment with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-late-payment-with-DAX/m-p/3049474#M104978</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = SUMX('Table',IF([Payment Date]&amp;gt;=[Due Date],1,0))&lt;/LI-CODE&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&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;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 05:21:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Historical-late-payment-with-DAX/m-p/3049474#M104978</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2023-01-30T05:21:54Z</dc:date>
    </item>
  </channel>
</rss>

