<?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 DAX in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/DAX/m-p/2989493#M28244</link>
    <description>&lt;OL&gt;&lt;LI&gt;Convert the below expression in DAX or explain how you will achieve the result if you have full year exit and headcount data stacked monthly&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Annualized Attrition = (Total YTD Exits/YTD Average Headcount) * (12/Number of months passed)&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2022 04:19:37 GMT</pubDate>
    <dc:creator>Abdult</dc:creator>
    <dc:date>2022-12-27T04:19:37Z</dc:date>
    <item>
      <title>DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/DAX/m-p/2989493#M28244</link>
      <description>&lt;OL&gt;&lt;LI&gt;Convert the below expression in DAX or explain how you will achieve the result if you have full year exit and headcount data stacked monthly&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Annualized Attrition = (Total YTD Exits/YTD Average Headcount) * (12/Number of months passed)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 04:19:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/DAX/m-p/2989493#M28244</guid>
      <dc:creator>Abdult</dc:creator>
      <dc:date>2022-12-27T04:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/DAX/m-p/2989539#M28245</link>
      <description>&lt;P&gt;First you need to calculate Active Headcounts for each month/date. That means if person left/hire during that time, he must be included/excluded from active head counts. There should be "Leaving Date" , "Hiring Date" in your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a YTD measure of based on above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure that will calculate exit only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The architecture will include 1-active relationship between Date and Employee table. Lets say it is connected with Hiring Date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then there will be a inactive relationship between Date and Leaving date to calculate exits based on this relationship.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In below example there is a Column active and it will hold "1" for all the employees and "Left" column where employees left or Leaving date is not null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_Hire = CALCULATE(SUM(Employee[Active]),USERELATIONSHIP(PBI_DimDate[DateSecAlternateKey],Employee[HiringDate]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;_Hire YTD =  CALCULATE([_Hire],DATESYTD(PBI_DimDate[DateSecAlternateKey]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;_Left = CALCULATE(SUM(Employee[Left]),USERELATIONSHIP(PBI_DimDate[DateSecAlternateKey],Employee[LeavingDate]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_ActiveAll = 
Var dt = Max(PBI_DimDate[DateSecAlternateKey])

RETURN

CALCULATE(COUNTROWS(Employee),FILTER(ALLEXCEPT(Employee,Employee[CountryCode]),(Employee[HiringDate]&amp;lt;=dt &amp;amp;&amp;amp; (Employee[LeavingDate]&amp;gt;=dt || ISBLANK(Employee[LeavingDate])=TRUE()) )))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then create your above formula using above measures..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Annualized Attrition = (Total YTD Exits/YTD Average Headcount) * (12/Number of months passed)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 05:31:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/DAX/m-p/2989539#M28245</guid>
      <dc:creator>FarhanAhmed</dc:creator>
      <dc:date>2022-12-27T05:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/DAX/m-p/2991516#M28266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490564" data-lia-user-login="Abdult" class="lia-mention lia-mention-user"&gt;Abdult&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whether the advice given by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="235619" data-lia-user-login="FarhanAhmed" class="lia-mention lia-mention-user"&gt;FarhanAhmed&lt;/a&gt;&amp;nbsp; has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Looking forward to your feedback.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Henry&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 10:06:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/DAX/m-p/2991516#M28266</guid>
      <dc:creator>v-henryk-mstf</dc:creator>
      <dc:date>2022-12-28T10:06:23Z</dc:date>
    </item>
  </channel>
</rss>

