<?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: Headcount growth rate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3067774#M106290</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think my sample model is simpler than yours.&lt;/P&gt;
&lt;P&gt;In order to get previous year's numbers in your model, please try using relevant column from Dim Date table.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 04:08:50 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2023-02-08T04:08:50Z</dc:date>
    <item>
      <title>Headcount growth rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3064506#M106047</link>
      <description>&lt;P&gt;Good afternoon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying to figure out a dax to calculate the growth % year over year for each dept&amp;nbsp; with the sample query below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I created a clustered column chart to show # of distinct position each year by department using a&amp;nbsp; query with similar headings below. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to create a formula to show growth % year over year within each dept when hovering over certain year (sample graph i would like to show below).&amp;nbsp; Please help.&amp;nbsp; Thank you&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 21:50:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3064506#M106047</guid>
      <dc:creator>mariomyhanh</dc:creator>
      <dc:date>2023-02-06T21:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount growth rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3064575#M106057</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Position # count: = 
COUNTROWS( VALUES(Data[Position #]) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Position # count YoY: =
VAR _currentyear = [Position # count:]
VAR _prevyear =
    CALCULATE ( [Position # count:], FY[FY] = MAX ( FY[FY] ) - 1 )
RETURN
    DIVIDE ( _currentyear - _prevyear, _prevyear )
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Feb 2023 19:14:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3064575#M106057</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-02-06T19:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount growth rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3064628#M106061</link>
      <description>&lt;P&gt;Is there a way to count position # using distinct count? for example, if there's a repeated position number in the same fiscal year to only count it once. I tried this forumula&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DistinctCountofPosition = &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Staffing Roster'&lt;/SPAN&gt;&lt;SPAN&gt;[Position]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and it works in a table, but when i try to add it to the dax provided for YoY% it will not work.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Position # count YoY: = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _currentyear = [DistinctCountofPosition]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _prevyear =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( [DistinctCountofPosition], FY[FY]= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt; ( FY[FY] - &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt; ( _currentyear - _prevyear, _prevyear )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;please help&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 20:15:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3064628#M106061</guid>
      <dc:creator>mariomyhanh</dc:creator>
      <dc:date>2023-02-06T20:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount growth rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3065271#M106107</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thank you for your message.&lt;/P&gt;
&lt;P&gt;I am not sure but please check if you missed to insert&amp;nbsp; ")" like the below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Position # count YoY: =
VAR _currentyear = [DistinctCountofPosition]
VAR _prevyear =
    CALCULATE ( [DistinctCountofPosition], FY[FY] = MAX ( FY[FY] ) - 1 )
RETURN
    DIVIDE ( _currentyear - _prevyear, _prevyear )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, please share your sample pbix file's link, and then I can try to look into it to come up with a more accurate solution.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 03:56:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3065271#M106107</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-02-07T03:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount growth rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3066597#M106202</link>
      <description>&lt;P&gt;Thank you so much for your help and patience.&amp;nbsp; here is the link to the sample data. I hope you are able to access it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mdandersonorg-my.sharepoint.com/personal/mytran_mdanderson_org/Documents/Sample%20Headcount%20growth%20rate%20data.pbix?csf=1&amp;amp;web=1&amp;amp;e=4TEA1R" target="_blank"&gt;Sample Headcount growth rate data.pbix&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:43:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3066597#M106202</guid>
      <dc:creator>mariomyhanh</dc:creator>
      <dc:date>2023-02-07T15:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount growth rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3066875#M106223</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your link, but I cannot accesss to it.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 18:21:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3066875#M106223</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-02-07T18:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount growth rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3066949#M106234</link>
      <description>&lt;P&gt;Unfortunately, i am not able to share the file. So sorry. When adding the YoY to the value field table (see below) it returns 0 for all the&amp;nbsp; FY YoY.&amp;nbsp; . I hope this helps. Thank you so much again.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &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>Wed, 08 Feb 2023 12:47:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3066949#M106234</guid>
      <dc:creator>mariomyhanh</dc:creator>
      <dc:date>2023-02-08T12:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount growth rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3067774#M106290</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think my sample model is simpler than yours.&lt;/P&gt;
&lt;P&gt;In order to get previous year's numbers in your model, please try using relevant column from Dim Date table.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 04:08:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Headcount-growth-rate/m-p/3067774#M106290</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-02-08T04:08:50Z</dc:date>
    </item>
  </channel>
</rss>

