<?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 DAX Formula to Analyze Invoice Payment Status at Specific Dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Analyze-Invoice-Payment-Status-at-Specific-Dates/m-p/3397715#M128216</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;Problem Statement:&lt;/STRONG&gt; I am working with invoice data and want to categorize invoices based on their payment status as of specific dates. I would like to select a specific date from a Date dimension table and see how the situation looked at that particular moment. Additionally, I want to display how the payment status categories evolved over time.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirements:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Categorize invoices&lt;/STRONG&gt; based on the age of the unpaid amount as of a specific date.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Select a specific date&lt;/STRONG&gt; from a Date dimension table to analyze the payment status as of that date.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Display the evolution&lt;/STRONG&gt; of the payment status categories over time.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Sample Data Structure:&lt;/STRONG&gt; Here's a simplified example of the data:&lt;/P&gt;&lt;BR /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;InvoiceNumber&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;InvoiceDate&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;PaymentDate&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;InvoiceAmount&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;PaymentAmount&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;01.01.23&lt;/TD&gt;&lt;TD&gt;15.03.23&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;15.02.23&lt;/TD&gt;&lt;TD&gt;10.04.23&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;15.03.23&lt;/TD&gt;&lt;TD&gt;(null)&lt;/TD&gt;&lt;TD&gt;150&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Objective:&lt;/STRONG&gt; I want to create a measure that takes into consideration the selected date from the Date dimension table and categorizes the invoices accordingly. For example, if the selected date is 31.03.23, the measure should consider only the payments made up to that date and ignore the future payments.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Categories:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"0-30 Days Due": If the unpaid amount is due for 0-30 days as of the selected date.&lt;/LI&gt;&lt;LI&gt;"31-60 Days Due": If the unpaid amount is due for 31-60 days as of the selected date.&lt;/LI&gt;&lt;LI&gt;"Over 60 Days Due": If the unpaid amount is due for over 60 days as of the selected date.&lt;/LI&gt;&lt;LI&gt;"Paid": If the invoice is paid as of the selected date.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I appreciate any insights or guidance on how to achieve this using DAX in Power BI. Feel free to provide a simplified solution if necessary.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 24 Aug 2023 19:24:38 GMT</pubDate>
    <dc:creator>digicontrolling</dc:creator>
    <dc:date>2023-08-24T19:24:38Z</dc:date>
    <item>
      <title>DAX Formula to Analyze Invoice Payment Status at Specific Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Analyze-Invoice-Payment-Status-at-Specific-Dates/m-p/3397715#M128216</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;Problem Statement:&lt;/STRONG&gt; I am working with invoice data and want to categorize invoices based on their payment status as of specific dates. I would like to select a specific date from a Date dimension table and see how the situation looked at that particular moment. Additionally, I want to display how the payment status categories evolved over time.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirements:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Categorize invoices&lt;/STRONG&gt; based on the age of the unpaid amount as of a specific date.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Select a specific date&lt;/STRONG&gt; from a Date dimension table to analyze the payment status as of that date.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Display the evolution&lt;/STRONG&gt; of the payment status categories over time.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Sample Data Structure:&lt;/STRONG&gt; Here's a simplified example of the data:&lt;/P&gt;&lt;BR /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;InvoiceNumber&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;InvoiceDate&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;PaymentDate&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;InvoiceAmount&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;PaymentAmount&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;01.01.23&lt;/TD&gt;&lt;TD&gt;15.03.23&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;15.02.23&lt;/TD&gt;&lt;TD&gt;10.04.23&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;15.03.23&lt;/TD&gt;&lt;TD&gt;(null)&lt;/TD&gt;&lt;TD&gt;150&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Objective:&lt;/STRONG&gt; I want to create a measure that takes into consideration the selected date from the Date dimension table and categorizes the invoices accordingly. For example, if the selected date is 31.03.23, the measure should consider only the payments made up to that date and ignore the future payments.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Categories:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"0-30 Days Due": If the unpaid amount is due for 0-30 days as of the selected date.&lt;/LI&gt;&lt;LI&gt;"31-60 Days Due": If the unpaid amount is due for 31-60 days as of the selected date.&lt;/LI&gt;&lt;LI&gt;"Over 60 Days Due": If the unpaid amount is due for over 60 days as of the selected date.&lt;/LI&gt;&lt;LI&gt;"Paid": If the invoice is paid as of the selected date.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I appreciate any insights or guidance on how to achieve this using DAX in Power BI. Feel free to provide a simplified solution if necessary.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Aug 2023 19:24:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Analyze-Invoice-Payment-Status-at-Specific-Dates/m-p/3397715#M128216</guid>
      <dc:creator>digicontrolling</dc:creator>
      <dc:date>2023-08-24T19:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula to Analyze Invoice Payment Status at Specific Dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Analyze-Invoice-Payment-Status-at-Specific-Dates/m-p/3398701#M128269</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="607398" data-lia-user-login="digicontrolling" class="lia-mention lia-mention-user"&gt;digicontrolling&lt;/a&gt;&amp;nbsp;I hope this helps you. Thank You.&lt;BR /&gt;&lt;BR /&gt;Max Date = MAX(Slicer Date) / Min Date = MIN(Slicer Date)&lt;BR /&gt;E.g&amp;nbsp;&lt;BR /&gt;0-30 = calculate(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Total Sales],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Filter(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ALL( Payments[Date] ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Datediff ( Payments[Date]&amp;lt;[Max Date]/[Min Date] ) &amp;gt;=0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Datediff ( Payments[Date]&amp;lt;[Max Date]/[Min Date] ) &amp;lt;31&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:35:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-to-Analyze-Invoice-Payment-Status-at-Specific-Dates/m-p/3398701#M128269</guid>
      <dc:creator>Mahesh0016</dc:creator>
      <dc:date>2023-08-25T08:35:52Z</dc:date>
    </item>
  </channel>
</rss>

