<?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: Relate tables results in DAX from 2 different tables that are not related in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026366#M158981</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770944" data-lia-user-login="Forrestgump1980" class="lia-mention lia-mention-user"&gt;Forrestgump1980&lt;/a&gt;&amp;nbsp;,&amp;nbsp;you can use DAX measures and the CALCULATE function along with FILTER to get the counts for each division&lt;/P&gt;
&lt;P&gt;First measure&lt;/P&gt;
&lt;P&gt;RequisitionCount = COUNTROWS('Requisitions')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondmeasure&lt;/P&gt;
&lt;P&gt;NewHiresCount = CALCULATE(&lt;BR /&gt;COUNTROWS('New Hires'),&lt;BR /&gt;FILTER('New Hires', 'New Hires'[Division] = MAX('Requisitions'[Division]))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drag the Division field from the Requisitions table to the Values area of the table visualization.&lt;BR /&gt;Drag the RequisitionCount measure to the Values area.&lt;BR /&gt;Drag the NewHiresCount measure to the Values area.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 06:23:03 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-07-05T06:23:03Z</dc:date>
    <item>
      <title>Relate tables results in DAX from 2 different tables that are not related</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026326#M158979</link>
      <description>&lt;P&gt;I have 2 tables that I cannot link because it will create a many to many relationship. 1 Table is called 'Requisitions' the other is called 'New Hires'. Both tables have a field 'Division'. In the 'Requisition' table I can count the number of requistions in a pivot by division, in the 'New Hires' table I can count the number of new hires in a pivot separately. However, I want to combine the results in 1 table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try and bring in the results from the 'New Hires' table to the 'Requisition' table using CountRows("New Hires") it brings back the total 'New Hires' in each row i.e. 5,270 repeated in each division. but what I want is the count to count the number of new hires in each division respectively.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to create something using the functions CALCULATED, VALUES, FILTER but i can't get anything to work at the moment. I am not even sure this is the correct approach.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026326#M158979</guid>
      <dc:creator>Forrestgump1980</dc:creator>
      <dc:date>2024-07-05T06:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Relate tables results in DAX from 2 different tables that are not related</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026366#M158981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770944" data-lia-user-login="Forrestgump1980" class="lia-mention lia-mention-user"&gt;Forrestgump1980&lt;/a&gt;&amp;nbsp;,&amp;nbsp;you can use DAX measures and the CALCULATE function along with FILTER to get the counts for each division&lt;/P&gt;
&lt;P&gt;First measure&lt;/P&gt;
&lt;P&gt;RequisitionCount = COUNTROWS('Requisitions')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondmeasure&lt;/P&gt;
&lt;P&gt;NewHiresCount = CALCULATE(&lt;BR /&gt;COUNTROWS('New Hires'),&lt;BR /&gt;FILTER('New Hires', 'New Hires'[Division] = MAX('Requisitions'[Division]))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drag the Division field from the Requisitions table to the Values area of the table visualization.&lt;BR /&gt;Drag the RequisitionCount measure to the Values area.&lt;BR /&gt;Drag the NewHiresCount measure to the Values area.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:23:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026366#M158981</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-07-05T06:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Relate tables results in DAX from 2 different tables that are not related</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026419#M158988</link>
      <description>&lt;P&gt;Thanks for this.... I might be something wrong but now the counts are working across the division and are working correctly but unfortunately the total doesn't add up to counts in the NewHiresCount??&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:41:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026419#M158988</guid>
      <dc:creator>Forrestgump1980</dc:creator>
      <dc:date>2024-07-05T06:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Relate tables results in DAX from 2 different tables that are not related</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026440#M158994</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770944" data-lia-user-login="Forrestgump1980" class="lia-mention lia-mention-user"&gt;Forrestgump1980&lt;/a&gt;&amp;nbsp;, This might be context issue, use this measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NewHiresCount = &lt;BR /&gt;SUMX(&lt;BR /&gt;VALUES('Requisitions'[Division]),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('New Hires'),&lt;BR /&gt;FILTER('New Hires', 'New Hires'[Division] = EARLIER('Requisitions'[Division]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:48:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026440#M158994</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-07-05T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Relate tables results in DAX from 2 different tables that are not related</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026491#M158999</link>
      <description>&lt;P&gt;Thank you so much for your help that worked. I still need to add some filters to the final solution but i will try that on my own first.&amp;nbsp; Thanks once again!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 07:15:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relate-tables-results-in-DAX-from-2-different-tables-that-are/m-p/4026491#M158999</guid>
      <dc:creator>Forrestgump1980</dc:creator>
      <dc:date>2024-07-05T07:15:05Z</dc:date>
    </item>
  </channel>
</rss>

