<?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 Cost per hire - in row with Candidate ID in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-per-hire-in-row-with-Candidate-ID/m-p/1620877#M32703</link>
    <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got stuck a little bit in a formula.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For context, there are marketing campaigns for recruitment purposes setup to attract candidates to apply to certain vacancies (Vacancy_ID), some of them get hired from that specific campaign and therefore we want to measure the "Cost per hire" based on that campaign expenses.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables connected via "Vacancy ID", 1st is 'report' the 2nd one is "costperhire" (one from the screenshot below), I used the formula below to get how many candidates were hired from that specific campaign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hired = CALCULATE(DISTINCTCOUNT('report'[Candidate_CandidateGUId]), FILTER('report', 'costperhire'[channel] = 'report'[Centralized Sources Detail] &amp;amp;&amp;amp; 'costperhire'[start] &amp;lt;= 'report'[Candidate_SubmittedDate] &amp;amp;&amp;amp; 'costperhire'[end] &amp;gt;= 'report'[Candidate_SubmittedDate] &amp;amp;&amp;amp; 'costperhire'[vacancy_ID] = 'report'[Vacancy_VacancyId] &amp;amp;&amp;amp; 'report'[Candidate_Hired1] = 1 &amp;amp;&amp;amp; 'report'[Candidate_CandidateGUId] = 'report'[Candidate_CandidateGUId]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I'm trying to achieve is to place the "Cost per hire" price on the same row as the "Candidate_CandidateGUId" in the 'report' table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'report' table contains:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Candidate_CandidateGUId | Candidate_SubmittedDate | Vacancy_VacancyId (vacancy_ID) | Centralized Sources Detail (channel) | Candidate_Hired1 (1 or 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add another column with "Cost per hire"&lt;BR /&gt;&lt;BR /&gt;It seems to be a "LookUpValue" function, but I'm having a hard time getting it right.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can you please help me with the formula here?&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Please let me know if I should provide more information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 12:21:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-25T12:21:08Z</dc:date>
    <item>
      <title>Cost per hire - in row with Candidate ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-per-hire-in-row-with-Candidate-ID/m-p/1620877#M32703</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got stuck a little bit in a formula.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For context, there are marketing campaigns for recruitment purposes setup to attract candidates to apply to certain vacancies (Vacancy_ID), some of them get hired from that specific campaign and therefore we want to measure the "Cost per hire" based on that campaign expenses.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables connected via "Vacancy ID", 1st is 'report' the 2nd one is "costperhire" (one from the screenshot below), I used the formula below to get how many candidates were hired from that specific campaign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hired = CALCULATE(DISTINCTCOUNT('report'[Candidate_CandidateGUId]), FILTER('report', 'costperhire'[channel] = 'report'[Centralized Sources Detail] &amp;amp;&amp;amp; 'costperhire'[start] &amp;lt;= 'report'[Candidate_SubmittedDate] &amp;amp;&amp;amp; 'costperhire'[end] &amp;gt;= 'report'[Candidate_SubmittedDate] &amp;amp;&amp;amp; 'costperhire'[vacancy_ID] = 'report'[Vacancy_VacancyId] &amp;amp;&amp;amp; 'report'[Candidate_Hired1] = 1 &amp;amp;&amp;amp; 'report'[Candidate_CandidateGUId] = 'report'[Candidate_CandidateGUId]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I'm trying to achieve is to place the "Cost per hire" price on the same row as the "Candidate_CandidateGUId" in the 'report' table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'report' table contains:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Candidate_CandidateGUId | Candidate_SubmittedDate | Vacancy_VacancyId (vacancy_ID) | Centralized Sources Detail (channel) | Candidate_Hired1 (1 or 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add another column with "Cost per hire"&lt;BR /&gt;&lt;BR /&gt;It seems to be a "LookUpValue" function, but I'm having a hard time getting it right.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can you please help me with the formula here?&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Please let me know if I should provide more information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 12:21:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-per-hire-in-row-with-Candidate-ID/m-p/1620877#M32703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-25T12:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cost per hire - in row with Candidate ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-per-hire-in-row-with-Candidate-ID/m-p/1621573#M32718</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Found the solution eventually, it was the RELATED function that needed to be used in order to work. Thank you very much!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Cost per Hire = IF(RELATED(costperhire[vacancy_ID]) = 'report'[Vacancy_VacancyId] &amp;amp;&amp;amp; RELATED(costperhire[start]) &amp;lt;= 'report'[Candidate_SubmittedDate] &amp;amp;&amp;amp; RELATED(costperhire[end]) &amp;gt;= 'report'[Candidate_SubmittedDate] &amp;amp;&amp;amp; RELATED(costperhire[channel]) = 'report'[Centralized Sources Detail] &amp;amp;&amp;amp; 'report'[Candidate_Hired1] = 1, RELATED(costperhire[Cost per hire]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Jan 2021 16:43:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cost-per-hire-in-row-with-Candidate-ID/m-p/1621573#M32718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-25T16:43:17Z</dc:date>
    </item>
  </channel>
</rss>

