<?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: Calculate Experience in Dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Experience-in-Dax/m-p/3222232#M117813</link>
    <description>&lt;P&gt;It doenst help, since&amp;nbsp;&lt;SPAN&gt;Max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dates&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;) retuns the max date in the table which is always today date. It doesnt show the last day of the selected month. FYI I am creating a new column in the Employee table using the above dax. Not creating as the measure&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 13:33:02 GMT</pubDate>
    <dc:creator>sheik</dc:creator>
    <dc:date>2023-05-05T13:33:02Z</dc:date>
    <item>
      <title>Calculate Experience in Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Experience-in-Dax/m-p/3222157#M117804</link>
      <description>&lt;P&gt;I have Employee Table and Date Table.&lt;/P&gt;&lt;P&gt;I have a slicer of Year Month. Based on the selection the summary dashboard shows the Active head count as on last day of the month seleceted in year month slicer.&lt;/P&gt;&lt;P&gt;From the summary page i have drill through which shows the active employee details. The drill through works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is I am not able to caculate the experience based on the DOJ and the last day of the month which I selected in the Year Month Slicer.&lt;/P&gt;&lt;P&gt;e.g: The DOJ is 1st Jan 2020 then If I choose Dec2020 then the exp should be displayed as 1 year and if I choose Jun2021 then it should show as 1.5 years.&lt;/P&gt;&lt;P&gt;How do I achieve using the DAX?&lt;/P&gt;&lt;P&gt;I tried the below DAX, but it always calculates the experience as of today not as of the selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Exp = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;Total_Exp_Tmp&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Employee&lt;/SPAN&gt;&lt;SPAN&gt;[STATUS]&lt;/SPAN&gt;&lt;SPAN&gt;==&lt;/SPAN&gt;&lt;SPAN&gt;"S"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ROUND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Employee&lt;/SPAN&gt;&lt;SPAN&gt;[JOIN_DATE]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Employee&lt;/SPAN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SPAN&gt;Total_Exp_Tmp&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:03:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Experience-in-Dax/m-p/3222157#M117804</guid>
      <dc:creator>sheik</dc:creator>
      <dc:date>2023-05-05T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Experience in Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Experience-in-Dax/m-p/3222200#M117810</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="556195" data-lia-user-login="sheik" class="lia-mention lia-mention-user"&gt;sheik&lt;/a&gt;&amp;nbsp;Try EOMONTH(Max(Dates[Date]),0)&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:19:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Experience-in-Dax/m-p/3222200#M117810</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-05-05T13:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Experience in Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Experience-in-Dax/m-p/3222232#M117813</link>
      <description>&lt;P&gt;It doenst help, since&amp;nbsp;&lt;SPAN&gt;Max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dates&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;) retuns the max date in the table which is always today date. It doesnt show the last day of the selected month. FYI I am creating a new column in the Employee table using the above dax. Not creating as the measure&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:33:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Experience-in-Dax/m-p/3222232#M117813</guid>
      <dc:creator>sheik</dc:creator>
      <dc:date>2023-05-05T13:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Experience in Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Experience-in-Dax/m-p/3222261#M117817</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="556195" data-lia-user-login="sheik" class="lia-mention lia-mention-user"&gt;sheik&lt;/a&gt;&amp;nbsp;Well that makes no sense then. Calculated columns are calculated when the data is loaded and refreshed. Calculated columns are not interactive and don't interact with slicers so you are never going to be able to achieve what you want with a calculated column, you need to use a measure.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Experience-in-Dax/m-p/3222261#M117817</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-05-05T13:48:32Z</dc:date>
    </item>
  </channel>
</rss>

