<?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: Calculations with multiple dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-with-multiple-dates/m-p/1932106#M41971</link>
    <description>&lt;P&gt;Firstly,create a new table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly,create a measure&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 03:31:28 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2021-07-01T03:31:28Z</dc:date>
    <item>
      <title>Calculations with multiple dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-with-multiple-dates/m-p/1929805#M41892</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on an HR measure where we are trying to see how often leaders (positions) are changing in our organization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have for each position, the employee who held the position, and the assignment start and end date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is to count how many employees held a position in a year and assign a status (2 or less, perfect, 3 ok, more than 3 bad) and then calculate the % per department per year of how many positions are in each status. like this:&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;&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;&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;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link to the sample data:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1tOY_X2VUg6RMpSPljmdebQU8L4Vl8UC0/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1tOY_X2VUg6RMpSPljmdebQU8L4Vl8UC0/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the count to work by year by creating a date table with two inactive relationships, but to assign a status I created a sub-table from my main one, but &amp;nbsp;the date or year filter don't&amp;nbsp;work on that table since the relationship is in active.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this is appreciated. I might be going at it all wrong &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;since it's my first time working with data with multiple dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 05:57:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-with-multiple-dates/m-p/1929805#M41892</guid>
      <dc:creator>Omneah</dc:creator>
      <dc:date>2021-06-30T05:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations with multiple dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-with-multiple-dates/m-p/1932106#M41971</link>
      <description>&lt;P&gt;Firstly,create a new table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly,create a measure&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 03:31:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-with-multiple-dates/m-p/1932106#M41971</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2021-07-01T03:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations with multiple dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-with-multiple-dates/m-p/1935248#M42071</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;@&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I tried it and for some reason I get the same results repeated for each year but it's different by the department.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to create a relationship with the DimStatus table and any other tables?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Omneah&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 11:48:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-with-multiple-dates/m-p/1935248#M42071</guid>
      <dc:creator>Omneah</dc:creator>
      <dc:date>2021-07-02T11:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations with multiple dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-with-multiple-dates/m-p/1936749#M42139</link>
      <description>&lt;P&gt;DimStatus has not any relationship with any table.&lt;/P&gt;
&lt;P&gt;have you put the column of Status on the legend?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 00:15:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-with-multiple-dates/m-p/1936749#M42139</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2021-07-05T00:15:45Z</dc:date>
    </item>
  </channel>
</rss>

