<?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 Fluctuation Table from Name list and month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2174025#M50547</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="188472" data-lia-user-login="bkr" class="lia-mention lia-mention-user"&gt;bkr&lt;/a&gt; , You can not use slicer values in a calculated table. But you can do it in a measure. Please make sure you have date and full name or ID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sales =&lt;BR /&gt;var _max = maxx(allselected('Date'),'Date'[Date])&lt;BR /&gt;var _min = minx(allselected('Date'),'Date'[Date])&lt;BR /&gt;var _hire = calculate(Min(Table[Date]), allexcept(Table, Table[Full Name]) ) &lt;BR /&gt;return&lt;BR /&gt;calculate(countx(filter(values(Table[Full name]) , _hire &amp;lt;=_max &amp;amp;&amp;amp; _hire &amp;gt;= _min)))&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 06:09:24 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-11-05T06:09:24Z</dc:date>
    <item>
      <title>Calculate Fluctuation Table from Name list and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2172991#M50496</link>
      <description>&lt;P&gt;Dear DAX cracks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of employees in our facility that is updated every month. In a reduced form, it looks like this:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Given Name&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Smith&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Smith&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Smith&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Smith&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Muller&lt;/TD&gt;&lt;TD&gt;Alex&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Muller&lt;/TD&gt;&lt;TD&gt;Alex&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Davis&lt;/TD&gt;&lt;TD&gt;Sam&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;As you can see, Alex Muller joined in May and Sam Davis was hired in July.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was asked to prepare a calculated table that shows the new hires based on a time slicer. E.g. If I wanted to show the additional hires from between April and August July, it should output Alex Muller and Sam Davis. In another calculated table I'd like to have the exits in a certain time period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My idea would be to calculate 2 interim tables, one containing the facts of the the starting month and the other having the end month data and then do something like a right outer join with the two interim tables in the first case and a left outer join in the second. But I don't understand how to achieve this in DAX. Any advice? Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 15:31:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2172991#M50496</guid>
      <dc:creator>bkr</dc:creator>
      <dc:date>2021-11-04T15:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fluctuation Table from Name list and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2174025#M50547</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="188472" data-lia-user-login="bkr" class="lia-mention lia-mention-user"&gt;bkr&lt;/a&gt; , You can not use slicer values in a calculated table. But you can do it in a measure. Please make sure you have date and full name or ID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sales =&lt;BR /&gt;var _max = maxx(allselected('Date'),'Date'[Date])&lt;BR /&gt;var _min = minx(allselected('Date'),'Date'[Date])&lt;BR /&gt;var _hire = calculate(Min(Table[Date]), allexcept(Table, Table[Full Name]) ) &lt;BR /&gt;return&lt;BR /&gt;calculate(countx(filter(values(Table[Full name]) , _hire &amp;lt;=_max &amp;amp;&amp;amp; _hire &amp;gt;= _min)))&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 06:09:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2174025#M50547</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-11-05T06:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fluctuation Table from Name list and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2174251#M50550</link>
      <description>&lt;P&gt;Thank you very much! I tried to transfer your solution on my data model. However, it's asking for another argument for the countx function in the last line. Is there anything missing here?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 08:19:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2174251#M50550</guid>
      <dc:creator>bkr</dc:creator>
      <dc:date>2021-11-05T08:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fluctuation Table from Name list and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2174284#M50551</link>
      <description>&lt;P&gt;Ok, I think I got what wou wanted to write - I assume the last line should read&lt;BR /&gt;&lt;SPAN&gt;calculate(countx(filter(values(Table[Full name]) , _hire &amp;lt;=_max &amp;amp;&amp;amp; _hire &amp;gt;= _min), Table[Full Name]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This gives me a number. But what I need is a list of the Names of the new hires.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 08:36:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2174284#M50551</guid>
      <dc:creator>bkr</dc:creator>
      <dc:date>2021-11-05T08:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fluctuation Table from Name list and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2179315#M50695</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="188472" data-lia-user-login="bkr" class="lia-mention lia-mention-user"&gt;bkr&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;"E.g. If I wanted to show the additional hires from&lt;STRONG&gt; between April and August July,&lt;/STRONG&gt; it should output Alex Muller and Sam Davis."&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I guess you meant if you choose &lt;STRONG&gt;May&lt;/STRONG&gt; to July here, because John Smith is also a new in April. I create a calculated&amp;nbsp;table to achieve this, basically you just need find the join month of each people.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = SUMMARIZE('Table',[Given Name],[Name],[Year],"Join Month",CALCULATE(MIN('Table'[Month]),ALLEXCEPT('Table','Table'[Name])))&lt;/LI-CODE&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 02:52:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Fluctuation-Table-from-Name-list-and-month/m-p/2179315#M50695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-09T02:52:00Z</dc:date>
    </item>
  </channel>
</rss>

