<?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 age calculation in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-age-calculation/m-p/2797665#M5384</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/447640"&gt;@Clemerson&lt;/a&gt;&amp;nbsp;Not sure what you are trying to do with the date slicer but if you don't want the birthday to change you could do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Dynamic Age Measure = 
  VAR __Name = MAX('Table'[Name]) // some identifier
  VAR __BirthDate = MAXX(FILTER(ALL('TAble'),[Name] = __Name),[Birth Date])
RETURN
  DATEDIFF(__BirthDate ,TODAY(), YEAR)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 26 Sep 2022 19:11:51 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-09-26T19:11:51Z</dc:date>
    <item>
      <title>Dynamic age calculation</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-age-calculation/m-p/2797648#M5383</link>
      <description>&lt;P&gt;Good afternoon&lt;/P&gt;&lt;P&gt;I'm trying to make a dynamic age calculation, using a filter using a D_Calendar,I have a column with the date of birth, from it performed the age calculation&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Dynamic Age = DATEDIFF([Birth Date],NOW(), YEAR)", it turns out that When I change the date filter indicated in the attached image that the age is also recalculated, Tried in several ways and could not, does anyone know how to do?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clemerson_0-1664218942445.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/793257iC68660D922E45974/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Clemerson_0-1664218942445.png" alt="Clemerson_0-1664218942445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 19:03:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-age-calculation/m-p/2797648#M5383</guid>
      <dc:creator>Clemerson</dc:creator>
      <dc:date>2022-09-26T19:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic age calculation</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-age-calculation/m-p/2797665#M5384</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/447640"&gt;@Clemerson&lt;/a&gt;&amp;nbsp;Not sure what you are trying to do with the date slicer but if you don't want the birthday to change you could do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Dynamic Age Measure = 
  VAR __Name = MAX('Table'[Name]) // some identifier
  VAR __BirthDate = MAXX(FILTER(ALL('TAble'),[Name] = __Name),[Birth Date])
RETURN
  DATEDIFF(__BirthDate ,TODAY(), YEAR)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Sep 2022 19:11:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-age-calculation/m-p/2797665#M5384</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-26T19:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic age calculation</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-age-calculation/m-p/2797717#M5386</link>
      <description>&lt;P&gt;Thank you for your help,&lt;BR /&gt;Actually the date of birth I already have static&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clemerson_0-1664221059268.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/793273i07AD35A162AFCC34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Clemerson_0-1664221059268.png" alt="Clemerson_0-1664221059268.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;what I need is for dynamic age to change when I filter a different date&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clemerson_1-1664221125004.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/793276iDBDE27E095170CFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Clemerson_1-1664221125004.png" alt="Clemerson_1-1664221125004.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;example: Today 09/26/2022 the age is 80, when put in the filter the date of 09/26/2023 the age would have to change to 81,&amp;nbsp;I don't know if I could explain it right.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 19:42:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-age-calculation/m-p/2797717#M5386</guid>
      <dc:creator>Clemerson</dc:creator>
      <dc:date>2022-09-26T19:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic age calculation</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-age-calculation/m-p/2797729#M5387</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/447640"&gt;@Clemerson&lt;/a&gt;&amp;nbsp;So maybe this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Dynamic Age = DATEDIFF([Birth Date],MAX('Table'[Date]), YEAR)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Sep 2022 19:47:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-age-calculation/m-p/2797729#M5387</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-26T19:47:14Z</dc:date>
    </item>
  </channel>
</rss>

