<?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: Cummulative turnover rate based on turnover in month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4207835#M166827</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="790054" data-lia-user-login="MDeemter" class="lia-mention lia-mention-user"&gt;MDeemter&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, You can create a separate measure as well using divide like you have done or do like one i shown do the percentage calculation by dividing in a single measure..any approach is fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest go with your approach since you have already creatd Termination and Headcount measure separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 11:44:12 GMT</pubDate>
    <dc:creator>dharmendars007</dc:creator>
    <dc:date>2024-10-01T11:44:12Z</dc:date>
    <item>
      <title>Cummulative turnover rate based on turnover in month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4206342#M166800</link>
      <description>&lt;P&gt;Hi fellow BI-enthusiasts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help with the calculation of the cummulative turnover rate for different BU's in my organisation.&amp;nbsp;&lt;BR /&gt;I already have a measure that calculates the turnoverrate (number of terminated contracts/number of active employees).&amp;nbsp;&lt;BR /&gt;This measure also works when I want the turnoverrate per Business Unit per month.&lt;BR /&gt;&lt;BR /&gt;The standard within my organisation for reporting turnover is the cummulative percentage of given month and the 11 months prior.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However this is not as simple as it seems. Let me demonstrate with an example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;Business Unit X in February 2023:&lt;BR /&gt;&lt;FONT color="#008000"&gt;- 66 active employees&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;- 2 employees left&lt;/FONT&gt;&lt;BR /&gt;- Turonoverrate of &lt;FONT color="#00CCFF"&gt;&lt;STRONG&gt;3.03%&lt;/STRONG&gt;&lt;/FONT&gt; (2/66)&lt;BR /&gt;&lt;BR /&gt;In December 2023:&lt;BR /&gt;&lt;FONT color="#008000"&gt;- 56 active employees&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;- 1 employee left&lt;/FONT&gt;&lt;BR /&gt;- Turnoverrate of &lt;FONT color="#00CCFF"&gt;&lt;STRONG&gt;1.79%&lt;/STRONG&gt;&lt;/FONT&gt; (1/56)&lt;BR /&gt;&lt;BR /&gt;This is the data in the given months. However, in a selected month, I want the status of the current month and the 11 months before it cumulatively. This must be the sum of the different turonverrate's.&lt;BR /&gt;&lt;BR /&gt;E.g. Business Unit X's cummulative percentage in December 2023 should be:&lt;BR /&gt;In this case &lt;FONT color="#00CCFF"&gt;3.03% (Feb 2023)&lt;/FONT&gt; + &lt;FONT color="#00CCFF"&gt;1.79% (Dec 2023)&lt;/FONT&gt; = 4.82% = CORRECT&lt;BR /&gt;&lt;BR /&gt;So what I don't want is for everything to be added together like:&lt;BR /&gt;A total of &lt;FONT color="#339966"&gt;76 people were employed&lt;/FONT&gt; in those two months and &lt;FONT color="#FF0000"&gt;3 left employment&lt;/FONT&gt;, which gives you a ratio of &lt;FONT color="#00CCFF"&gt;3.95%&lt;/FONT&gt; (3/76) = INCORRECT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope this example clarifies my situation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;P.S. I might add that my data comes mostly form a SQL-server and is imported.&lt;BR /&gt;I tried several formules from Chat GPT, but they were either wrong or gave me the following error:&amp;nbsp;&lt;EM&gt;"Visual has exceeded available resources&lt;/EM&gt;&lt;EM&gt;",&amp;nbsp;&lt;/EM&gt;making it specifically hard to check whether chat GPT's formulas are correct.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 08:32:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4206342#M166800</guid>
      <dc:creator>MDeemter</dc:creator>
      <dc:date>2024-10-01T08:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative turnover rate based on turnover in month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4206524#M166806</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="790054" data-lia-user-login="MDeemter" class="lia-mention lia-mention-user"&gt;MDeemter&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step1 - Create a Turnover Measure ( left employees /Active Employees)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;TurnoverRate = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;DIVIDE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS(FILTER('Terminations', 'Terminations'[Business Unit] = 'Business Units'[Business Unit])), &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS(FILTER('Active Employees', 'Active Employees'[Business Unit] = 'Business Units'[Business Unit])))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Step2 -&amp;nbsp;Create the cumulative turnover rate over the past 12 months.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;CumulativeTurnoverRate =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUMX(&lt;BR /&gt;DATESINPERIOD('Calendar'[Date], MAX('Calendar'[Date]), -12, MONTH),[TurnoverRate]),ALL('Calendar'[Date]))&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 09:03:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4206524#M166806</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-10-01T09:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative turnover rate based on turnover in month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4206696#M166811</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="796215" data-lia-user-login="dharmendars007" class="lia-mention lia-mention-user"&gt;dharmendars007&lt;/a&gt;&amp;nbsp; thanks for the response,&lt;BR /&gt;&lt;BR /&gt;So I'm a bit confused about this formula:&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;TurnoverRate =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;DIVIDE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS(FILTER('Terminations', 'Terminations'[Business Unit] = 'Business Units'[Business Unit])),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;COUNTROWS(FILTER('Active Employees', 'Active Employees'[Business Unit] = 'Business Units'[Business Unit])))&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;I have two measures:&lt;BR /&gt;1. Headcount = a distinct count of employeenumber (with some filters as well) = from Facttable&lt;BR /&gt;2. Number of terminations in month = distinct count of employeenumber with a termination date in given month = From Dim.table&lt;BR /&gt;&lt;BR /&gt;These measures are used in a third measure: Turnoverrate:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RatioUitDienst = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; [Number of terminations in month],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; [Headcount],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 11:16:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4206696#M166811</guid>
      <dc:creator>MDeemter</dc:creator>
      <dc:date>2024-10-01T11:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative turnover rate based on turnover in month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4207835#M166827</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="790054" data-lia-user-login="MDeemter" class="lia-mention lia-mention-user"&gt;MDeemter&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, You can create a separate measure as well using divide like you have done or do like one i shown do the percentage calculation by dividing in a single measure..any approach is fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest go with your approach since you have already creatd Termination and Headcount measure separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 11:44:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4207835#M166827</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-10-01T11:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative turnover rate based on turnover in month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4208273#M166843</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="796215" data-lia-user-login="dharmendars007" class="lia-mention lia-mention-user"&gt;dharmendars007&lt;/a&gt;&amp;nbsp;Yes, but the problem is: doing so does and using your formula&amp;nbsp;&lt;FONT color="#FF0000"&gt;CumulativeTurnoverRate &lt;/FONT&gt;&lt;FONT color="#000000"&gt;does not give the right outcomes.&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 13:51:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4208273#M166843</guid>
      <dc:creator>MDeemter</dc:creator>
      <dc:date>2024-10-01T13:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative turnover rate based on turnover in month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4232746#M167401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="790054" data-lia-user-login="MDeemter" class="lia-mention lia-mention-user"&gt;MDeemter&lt;/a&gt;&amp;nbsp;, hello&amp;nbsp;dharmendars007, thank you for your prompt reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = DIVIDE(SELECTEDVALUE('Table'[Termination Count]),SELECTEDVALUE('Table'[Employee Count]),0)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Rolling Measure = 
CALCULATE(
    SUMX('Table',[Measure]),
    FILTER(
        ALL('Table'),
        'Table'[Date] &amp;lt;= MAX('Table'[Date]) &amp;amp;&amp;amp;
        'Table'[Date] &amp;gt;= EDATE(MAX('Table'[Date]), -11) &amp;amp;&amp;amp;
        'Table'[Business Unit] = MAX('Table'[Business Unit])
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 02:46:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-turnover-rate-based-on-turnover-in-month/m-p/4232746#M167401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-08T02:46:24Z</dc:date>
    </item>
  </channel>
</rss>

