<?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: Aging dates for customers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aging-dates-for-customers/m-p/2861278#M92152</link>
    <description>&lt;P&gt;&lt;SPAN&gt;IF(MAX(&lt;/SPAN&gt;&lt;SPAN&gt;DynamicDimensionTable[Periods]="Balance",SUM(SampleData[Amount])&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;CALCULATE(SUM(SampleData[Amount]),SampleData[DueDate]&amp;gt;=_min&amp;amp;&amp;amp;SampleData[DueDate]&amp;lt;=_max))&amp;nbsp;&lt;FONT color="#000000"&gt;T&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;FONT color="#000000"&gt;he highlighted part is not working its giving this error&lt;/FONT&gt;&lt;FONT color="#333300"&gt;&lt;EM&gt;&lt;STRONG&gt; Unexpected paramater',CALCULATE(SUM(SampleData[Amount]),SampleData[DueDate]&amp;gt;=_min&amp;amp;&amp;amp;SampleData[DueDate]&amp;lt;=_max))'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 08:59:22 GMT</pubDate>
    <dc:creator>engineer_alvina</dc:creator>
    <dc:date>2022-10-25T08:59:22Z</dc:date>
    <item>
      <title>Aging dates for customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aging-dates-for-customers/m-p/2859217#M92020</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I HAVE THE FOLLOWING TABLE WITH COMPANY NAME AND AMOUNT&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The above is the database showing the due date. what measures should I use to produce a report that is similar to the one below?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 12:59:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aging-dates-for-customers/m-p/2859217#M92020</guid>
      <dc:creator>engineer_alvina</dc:creator>
      <dc:date>2022-10-24T12:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aging dates for customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aging-dates-for-customers/m-p/2861177#M92137</link>
      <description>&lt;P&gt;1create a new table without relationships&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;DynamicDimensionTable = VAR _last=EOMONTH(TODAY(),-1) VAR _s=EOMONTH(_last,-3)+1 VAR _Dates=ADDCOLUMNS(CALENDAR(MIN(SampleData[DueDate]),MAX(SampleData[DueDate])),"Periods",IF([Date]&amp;gt;_last,"Not Due",IF([Date]&amp;lt;_s,"Before "&amp;amp;FORMAT(_s,"yyyy-mm-dd"),FORMAT(EOMONTH([Date],-1)+1,"yyyy-mm-dd")&amp;amp;".."&amp;amp;FORMAT(EOMONTH([Date],0),"yyyy-mm-dd")))) RETURN UNION(SELECTCOLUMNS(GROUPBY(_Dates,[Periods],"Start",MINX(CURRENTGROUP(),[Date]),"End",MAXX(CURRENTGROUP(),[Date])),"Periods",[Periods],"Start",[Start],"End",[End]),{("Balance","","")})&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; 2 put the Periods into the column area of the visual&lt;/P&gt;
&lt;P&gt;3 create a measure&lt;/P&gt;
&lt;P&gt;Aged Amount=VAR _min=MIN(&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;DynamicDimensionTable[Start]) VAR _max=MAX(DynamicDimensionTable[End]) RETURN&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;IF(MAX(&lt;SPAN&gt;DynamicDimensionTable[Periods]="Balance",SUM(SampleData[Amount]),&lt;/SPAN&gt;CALCULATE(SUM(SampleData[Amount]),SampleData[DueDate]&amp;gt;=_min&amp;amp;&amp;amp;SampleData[DueDate]&amp;lt;=_max))&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 08:28:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aging-dates-for-customers/m-p/2861177#M92137</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2022-10-25T08:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aging dates for customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aging-dates-for-customers/m-p/2861278#M92152</link>
      <description>&lt;P&gt;&lt;SPAN&gt;IF(MAX(&lt;/SPAN&gt;&lt;SPAN&gt;DynamicDimensionTable[Periods]="Balance",SUM(SampleData[Amount])&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;CALCULATE(SUM(SampleData[Amount]),SampleData[DueDate]&amp;gt;=_min&amp;amp;&amp;amp;SampleData[DueDate]&amp;lt;=_max))&amp;nbsp;&lt;FONT color="#000000"&gt;T&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;FONT color="#000000"&gt;he highlighted part is not working its giving this error&lt;/FONT&gt;&lt;FONT color="#333300"&gt;&lt;EM&gt;&lt;STRONG&gt; Unexpected paramater',CALCULATE(SUM(SampleData[Amount]),SampleData[DueDate]&amp;gt;=_min&amp;amp;&amp;amp;SampleData[DueDate]&amp;lt;=_max))'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 08:59:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aging-dates-for-customers/m-p/2861278#M92152</guid>
      <dc:creator>engineer_alvina</dc:creator>
      <dc:date>2022-10-25T08:59:22Z</dc:date>
    </item>
  </channel>
</rss>

