<?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 Help required on Aging and duration in power bi dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3635768#M140652</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate duration and aging based on the dates selected from the slicer Dateslicer (we used option as Between)&lt;/P&gt;&lt;P&gt;We are having fields like startdate and enddate columns in the source table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Requirement&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Slicer :&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Duration in Days Calculation&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;For example: We are having&lt;/P&gt;&lt;P&gt;&lt;U&gt;Startdate&lt;/U&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;U&gt;Enddate&lt;/U&gt;&lt;/P&gt;&lt;P&gt;01-Jan-2024&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;10-Jan-2024&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to calculate duration for above record is&amp;nbsp; diffference between these two dates :01-jan-2024 &amp;amp; 08-jan-2024 because we selected enddate as 8-jan-2024 from the slicer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Always StartDate&amp;gt;=Selected date from slicer&lt;/P&gt;&lt;P&gt;Enddate should be : &amp;lt;= selected date from the slicer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Power bI File Link&lt;/STRONG&gt; :&amp;nbsp;&lt;A href="https://1drv.ms/u/c/ee810675493a9aef/EXC5VeRPjLZIsi3kQ3_TfvoBeG_ZmgFwgM1aW9QfcR7gMg?e=WEybw7" target="_blank" rel="noopener"&gt;AgingDuration.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deva.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 12:18:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-12T12:18:11Z</dc:date>
    <item>
      <title>Help required on Aging and duration in power bi dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3635768#M140652</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate duration and aging based on the dates selected from the slicer Dateslicer (we used option as Between)&lt;/P&gt;&lt;P&gt;We are having fields like startdate and enddate columns in the source table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Requirement&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Slicer :&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Duration in Days Calculation&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;For example: We are having&lt;/P&gt;&lt;P&gt;&lt;U&gt;Startdate&lt;/U&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;U&gt;Enddate&lt;/U&gt;&lt;/P&gt;&lt;P&gt;01-Jan-2024&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;10-Jan-2024&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to calculate duration for above record is&amp;nbsp; diffference between these two dates :01-jan-2024 &amp;amp; 08-jan-2024 because we selected enddate as 8-jan-2024 from the slicer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Always StartDate&amp;gt;=Selected date from slicer&lt;/P&gt;&lt;P&gt;Enddate should be : &amp;lt;= selected date from the slicer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Power bI File Link&lt;/STRONG&gt; :&amp;nbsp;&lt;A href="https://1drv.ms/u/c/ee810675493a9aef/EXC5VeRPjLZIsi3kQ3_TfvoBeG_ZmgFwgM1aW9QfcR7gMg?e=WEybw7" target="_blank" rel="noopener"&gt;AgingDuration.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deva.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 12:18:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3635768#M140652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-12T12:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help required on Aging and duration in power bi dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3637891#M140786</link>
      <description>&lt;P&gt;You can let the data model help you, with USERELATIONSHIP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's your formula for aging?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 23:50:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3637891#M140786</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-01-14T23:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help required on Aging and duration in power bi dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3640920#M140954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created relation in data model and created measure for duration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;We are using matrix visual to show the data . Duration is showing correctly in the detail level( last drill down level) while we drill up to above level duration showing wrong values(means its not summing up the data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;For example:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Deatil Level&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;T&lt;/U&gt;hese duration values(Highloghted in yellow) are calculating correctly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Drill Up Level&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;When&lt;/U&gt;&amp;nbsp;we drill up the data showing wrong value )highlighted yellow)&lt;/P&gt;&lt;P&gt;we need to show : sum of 4.94+1.11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;img /&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried in my way but unable to solve the issue . Can you please help on the same?&lt;/P&gt;&lt;P&gt;Measure name created in the attached file is:&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Duration_Day&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power file Link:&amp;nbsp;&amp;nbsp;&lt;A href="https://1drv.ms/u/c/ee810675493a9aef/EXC5VeRPjLZIsi3kQ3_TfvoBeG_ZmgFwgM1aW9QfcR7gMg?e=cVjEyK" target="_blank" rel="noopener"&gt;AgingDuration.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deva.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 11:50:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3640920#M140954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-16T11:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help required on Aging and duration in power bi dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3644556#M141118</link>
      <description>&lt;P&gt;Your slicer should be fed by a proper calendar table, not by&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sheet1&lt;/SPAN&gt;&lt;SPAN&gt;[StartDate]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Jan 2024 23:45:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3644556#M141118</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-01-17T23:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help required on Aging and duration in power bi dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3665910#M142101</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;Can't open the pbix file you shared, please re-share it in another way and I'll get back to you as soon as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adamk Kong&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 09:52:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3665910#M142101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-29T09:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help required on Aging and duration in power bi dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3666255#M142127</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="666033" data-lia-user-login="v-kongfan-msft" class="lia-mention lia-mention-user"&gt;v-kongfan-msft&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requirement was resolved by myself. Thanks for your message.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 13:34:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-required-on-Aging-and-duration-in-power-bi-dax/m-p/3666255#M142127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-29T13:34:55Z</dc:date>
    </item>
  </channel>
</rss>

