<?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 Vacancies over time in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vacancies-over-time/m-p/3033680#M103792</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still pretty new to PowerBI and I am really struggling to create a solution to display vacancies over time. I have a working solution tracking vacancies using today's date however I am looking to build a solution using a date slicer to select any date and look a the position.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Current Data Structure&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Staffing table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;EmployeeID/VacancyID (all Employee IDs start with 1)&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Team&lt;/P&gt;&lt;P&gt;Role&lt;/P&gt;&lt;P&gt;Start Date&lt;/P&gt;&lt;P&gt;End Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Current Measure&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vacancies&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=CALCULATE(
   COUNTA('Staffing'[EmployeeID/VacancyID]),
   FILTER('Staffing',LEFT('Staffing'[EmployeeID/VacancyID],1)&amp;lt;&amp;gt;"1",
   FILTER('Staffing','Staffing'[Start Date]&amp;lt;TODAY() &amp;amp;&amp;amp; 'Staffing'[End Date]&amp;gt;TODAY())
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Proposed Solution&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I have tried replacing TODAY() with Date[Date] and adding a slicer with the [Date] however that doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or guidance would be really appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 10:38:31 GMT</pubDate>
    <dc:creator>metcala</dc:creator>
    <dc:date>2023-01-20T10:38:31Z</dc:date>
    <item>
      <title>Vacancies over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vacancies-over-time/m-p/3033680#M103792</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still pretty new to PowerBI and I am really struggling to create a solution to display vacancies over time. I have a working solution tracking vacancies using today's date however I am looking to build a solution using a date slicer to select any date and look a the position.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Current Data Structure&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Staffing table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;EmployeeID/VacancyID (all Employee IDs start with 1)&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Team&lt;/P&gt;&lt;P&gt;Role&lt;/P&gt;&lt;P&gt;Start Date&lt;/P&gt;&lt;P&gt;End Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Current Measure&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vacancies&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=CALCULATE(
   COUNTA('Staffing'[EmployeeID/VacancyID]),
   FILTER('Staffing',LEFT('Staffing'[EmployeeID/VacancyID],1)&amp;lt;&amp;gt;"1",
   FILTER('Staffing','Staffing'[Start Date]&amp;lt;TODAY() &amp;amp;&amp;amp; 'Staffing'[End Date]&amp;gt;TODAY())
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Proposed Solution&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I have tried replacing TODAY() with Date[Date] and adding a slicer with the [Date] however that doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or guidance would be really appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 10:38:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vacancies-over-time/m-p/3033680#M103792</guid>
      <dc:creator>metcala</dc:creator>
      <dc:date>2023-01-20T10:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Vacancies over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vacancies-over-time/m-p/3033735#M103796</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465614" data-lia-user-login="metcala" class="lia-mention lia-mention-user"&gt;metcala&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure there is no relationship between the two tables&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 11:06:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vacancies-over-time/m-p/3033735#M103796</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-20T11:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Vacancies over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vacancies-over-time/m-p/3033756#M103800</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Thanks for the quick reply. I have just deleted all of the relationships between the Staffing table and Date table and I am still getting "Can not find name [Date]" in the below measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=CALCULATE(
   COUNTA('Staffing'[EmployeeID/VacancyID]),
   FILTER('Staffing',LEFT('Staffing'[EmployeeID/VacancyID],1)&amp;lt;&amp;gt;"1",
   FILTER('Staffing','Staffing'[Start Date]&amp;lt;'Date'[Date] &amp;amp;&amp;amp; 'Staffing'[End Date]&amp;gt;'Date'[Date])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 11:26:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vacancies-over-time/m-p/3033756#M103800</guid>
      <dc:creator>metcala</dc:creator>
      <dc:date>2023-01-20T11:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Vacancies over time</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vacancies-over-time/m-p/3033867#M103808</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465614" data-lia-user-login="metcala" class="lia-mention lia-mention-user"&gt;metcala&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;VAR SelectedDate =&lt;BR /&gt;MAX ( 'Date'[Date] )&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTA ( 'Staffing'[EmployeeID/VacancyID] ),&lt;BR /&gt;FILTER (&lt;BR /&gt;'Staffing',&lt;BR /&gt;LEFT ( 'Staffing'[EmployeeID/VacancyID], 1 ) &amp;lt;&amp;gt; "1"&lt;BR /&gt;&amp;amp;&amp;amp; 'Staffing'[Start Date] &amp;lt; SelectedDate&lt;BR /&gt;&amp;amp;&amp;amp; 'Staffing'[End Date] &amp;gt; SelectedDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 12:23:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Vacancies-over-time/m-p/3033867#M103808</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-20T12:23:41Z</dc:date>
    </item>
  </channel>
</rss>

