<?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: Dax Query to get last sex month for each raw in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Query-to-get-last-sex-month-for-each-raw/m-p/3487733#M133462</link>
    <description>&lt;LI-CODE lang="markup"&gt;Last 6 Months Sum Divide = 
VAR SelectedDate = MAX('YourTable'[Date])  // Get the selected date - Here you can get the current date or selected from slicer
VAR StartDate = EOMONTH(SelectedDate, -6) + 1  // Calculate the start date for the last 6 months
VAR EndDate = SelectedDate  // The selected date is the end date
RETURN
    CALCULATE(
       DIVIDE( SUM('YourTable'[Column1] ), SUM( 'YourTable'[Column2]),0),
        FILTER(
            'YourTable',
            'YourTable'[Date] &amp;gt;= StartDate &amp;amp;&amp;amp; 'YourTable'[Date] &amp;lt;= EndDate
        )
    )&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 20 Oct 2023 13:20:10 GMT</pubDate>
    <dc:creator>_elbpower</dc:creator>
    <dc:date>2023-10-20T13:20:10Z</dc:date>
    <item>
      <title>Dax Query to get last sex month for each raw</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Query-to-get-last-sex-month-for-each-raw/m-p/3487674#M133458</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have this table , what i need to do to get new hire turn over for each month , the formula is&amp;nbsp; : ( Seperated employees within 6 months&amp;nbsp; / number of new hires within 6 months )&amp;nbsp; &amp;nbsp;for seperated is good and comes calculated from the source for each raw but for new hires not calculated so i need to calculate it for each raw lined with seperated to be able to divide them&amp;nbsp; so for example for Aug we have 1 seperated and should sum of 2+6+0+5+1+3&amp;nbsp; last 6 month including Aug sor new hiire should be 17 and turnover new hir will be : 1 / 17&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 12:55:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Query-to-get-last-sex-month-for-each-raw/m-p/3487674#M133458</guid>
      <dc:creator>shaher111</dc:creator>
      <dc:date>2023-10-20T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Query to get last sex month for each raw</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Query-to-get-last-sex-month-for-each-raw/m-p/3487733#M133462</link>
      <description>&lt;LI-CODE lang="markup"&gt;Last 6 Months Sum Divide = 
VAR SelectedDate = MAX('YourTable'[Date])  // Get the selected date - Here you can get the current date or selected from slicer
VAR StartDate = EOMONTH(SelectedDate, -6) + 1  // Calculate the start date for the last 6 months
VAR EndDate = SelectedDate  // The selected date is the end date
RETURN
    CALCULATE(
       DIVIDE( SUM('YourTable'[Column1] ), SUM( 'YourTable'[Column2]),0),
        FILTER(
            'YourTable',
            'YourTable'[Date] &amp;gt;= StartDate &amp;amp;&amp;amp; 'YourTable'[Date] &amp;lt;= EndDate
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Oct 2023 13:20:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Query-to-get-last-sex-month-for-each-raw/m-p/3487733#M133462</guid>
      <dc:creator>_elbpower</dc:creator>
      <dc:date>2023-10-20T13:20:10Z</dc:date>
    </item>
  </channel>
</rss>

