<?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: Dynamic Ageing in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2188390#M51096</link>
    <description>&lt;P&gt;Can you provide sample data or a mock-up PBIX file?&lt;/P&gt;</description>
    <pubDate>Sat, 13 Nov 2021 12:46:05 GMT</pubDate>
    <dc:creator>PaulDBrown</dc:creator>
    <dc:date>2021-11-13T12:46:05Z</dc:date>
    <item>
      <title>Dynamic Ageing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2188220#M51093</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am actually working on an AR ageing report.&lt;/P&gt;&lt;P&gt;My data model is as follows: I have a AR transaction table with the amount, with a Date filed related to a calendar table.&lt;/P&gt;&lt;P&gt;So far, I have managed to get the ageing as at today. I have added a calculated column, to calculate the age of the transaction and have used this measure to make it work:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ageing AR Amount = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PostAR&lt;/SPAN&gt;&lt;SPAN&gt;[AR Net]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;PostAR[Ageing]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Ageing Group'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;PostAR[Ageing]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;'Ageing Group'[Min]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PostAR[Ageing]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;'Ageing Group'[Max]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ageing group table and ageing is as follows:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So far so good. However, I need to have the calculated column age as dynamic, so that the ageing report is as at a selected date by the user.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;I have tried adding the ADDCOLUMNS to caluclated the age based on the date selected, but cannot figured it out.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 13 Nov 2021 06:38:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2188220#M51093</guid>
      <dc:creator>akhtar0507</dc:creator>
      <dc:date>2021-11-13T06:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ageing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2188383#M51095</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24542" data-lia-user-login="PaulDBrown" class="lia-mention lia-mention-user"&gt;PaulDBrown&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 12:13:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2188383#M51095</guid>
      <dc:creator>akhtar0507</dc:creator>
      <dc:date>2021-11-13T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ageing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2188390#M51096</link>
      <description>&lt;P&gt;Can you provide sample data or a mock-up PBIX file?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 12:46:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2188390#M51096</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2021-11-13T12:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ageing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2188424#M51099</link>
      <description>&lt;P&gt;Please find link below of model I am using :&lt;BR /&gt;&lt;A title="AgeAR" href="https://softwareconceptsltd-my.sharepoint.com/:u:/g/personal/akhtar_jadhakhan_sft_co_mu/EdBfs3qSN01NrtGc64m2968BJ71cHNAtIU5LfrM7MiyBYA?e=jMVPKv" target="_blank" rel="noopener"&gt;AgeAR&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Anticipated thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 13:15:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2188424#M51099</guid>
      <dc:creator>akhtar0507</dc:creator>
      <dc:date>2021-11-13T13:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ageing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2285731#M56057</link>
      <description>&lt;P&gt;Hi Akhtar.&lt;/P&gt;&lt;P&gt;i think it's not possible to have a dynamic column that respond to a slicer.&lt;/P&gt;&lt;P&gt;but if you want to have calculated column.&lt;/P&gt;&lt;P&gt;then you can create a crossjoin calculated table that consist a calendar and age group.&lt;BR /&gt;something like this formula:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Summary AR = 
var tblCalendar = SELECTCOLUMNS('Calendar', "Date", 'Calendar'[Date])
var tblAgeingGroup = SELECTCOLUMNS('Ageing Group', "Age Group", 'Ageing Group'[Age Group])
var tblClient = SELECTCOLUMNS(Client, "DCLink", Client[DCLink])
return CROSSJOIN(tblCalendar,tblAgeingGroup,tblClient)&lt;/LI-CODE&gt;&lt;P&gt;then you can add calculated column for each reporting date, age group and client either to count number of transactions and amount.&lt;/P&gt;&lt;P&gt;finally, create a relationship between your calendar table with new summary AR table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 03:13:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Ageing/m-p/2285731#M56057</guid>
      <dc:creator>faisalazh</dc:creator>
      <dc:date>2022-01-17T03:13:27Z</dc:date>
    </item>
  </channel>
</rss>

