<?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: Counting Employees with Over 30 Sick Days in R12M Using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4346159#M172602</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to answer and describe the logic. This help to understand how the steps must be set up in order for measure to function.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When trying to utilise the measure the error comes at line 14 for var&lt;/P&gt;&lt;PRE&gt;VAR ConsecutiveSickDays =&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;'EARLIER/EARLIEST refers to an earlier row context which doesn't exist.'&lt;BR /&gt;&lt;BR /&gt;How can we work around this error? I understand that the Last12Month table contains that filter context because it is a filtered table from Fact Absence but I do not know how to resolve the issue.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 10:24:48 GMT</pubDate>
    <dc:creator>Mateja</dc:creator>
    <dc:date>2024-12-30T10:24:48Z</dc:date>
    <item>
      <title>Counting Employees with Over 30 Sick Days in R12M Using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4340675#M172353</link>
      <description>&lt;P&gt;Hello Power BI Community,&lt;/P&gt;&lt;P&gt;I'm currently working on a DAX measure to count the number of employees who have more than 30 sick days in a rolling 12-month period (R12M). However, I'm encountering issues where the measure does not return the expected results. I would appreciate any guidance.&lt;/P&gt;&lt;P&gt;Data Model Details:&lt;/P&gt;&lt;P&gt;Fact Table: Fact Employee Absence&lt;/P&gt;&lt;P&gt;Contains columns such as Absence Date FK, DIM_EMPLOYEES_FK, and WageHours.&lt;BR /&gt;DIM_EMPLOYEES_FK is connected to Dim Employees via DIM_EMPLOYEE_KEY.&lt;/P&gt;&lt;P&gt;Dimension Table: Dim Employee Wage Codes&lt;/P&gt;&lt;P&gt;Contains the Absence Category column.&lt;/P&gt;&lt;P&gt;Dimension Table: Dim Dates&lt;/P&gt;&lt;P&gt;Used for date filtering.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Objective:&lt;/P&gt;&lt;P&gt;I want to count employees who have accumulated more than 30 sick days within the last 12 months. The Absence Category for sick leave is stored in the Dim Employee Wage Codes table.&lt;/P&gt;&lt;P&gt;Current Measure:&lt;/P&gt;&lt;P&gt;CountEmployeesOver30SickDays =&lt;BR /&gt;VAR DatePeriod = MAX('Dim Dates'[Date])&lt;BR /&gt;VAR Last12Months =&lt;BR /&gt;FILTER(&lt;BR /&gt;'Fact Employee Absence',&lt;BR /&gt;'Fact Employee Absence'[Absence Date FK] &amp;gt;= EDATE(DatePeriod, -12) &amp;amp;&amp;amp;&lt;BR /&gt;'Fact Employee Absence'[Absence Date FK] &amp;lt;= DatePeriod &amp;amp;&amp;amp;&lt;BR /&gt;RELATED('Dim Employee Wage Codes'[Absence Category]) = "Sick Leave"&lt;BR /&gt;)&lt;BR /&gt;VAR EmployeeSickDays =&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;Last12Months,&lt;BR /&gt;'Fact Employee Absence'[DIM_EMPLOYEES_FK],&lt;BR /&gt;"TotalSickDays",&lt;BR /&gt;CALCULATE(&lt;BR /&gt;DISTINCTCOUNT('Fact Employee Absence'[Absence Date FK]),&lt;BR /&gt;'Fact Employee Absence'[WageHours] &amp;gt; 0&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR EmployeesOver30Days =&lt;BR /&gt;FILTER(&lt;BR /&gt;EmployeeSickDays,&lt;BR /&gt;[TotalSickDays] &amp;gt; 30&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS(EmployeesOver30Days)&lt;BR /&gt;&lt;BR /&gt;The measure is not returing the correct number and is severly undercounting number of employees.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The point is actually to have a measure that will count numbers of employees who in the R12m have had more than 30&amp;nbsp; consecutive days of reported illness to see how many are actually long-term sick. IF you can directly help with this measure I would be greatful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 10:21:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4340675#M172353</guid>
      <dc:creator>Mateja</dc:creator>
      <dc:date>2024-12-23T10:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Employees with Over 30 Sick Days in R12M Using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4340681#M172356</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363959" data-lia-user-login="Mateja" class="lia-mention lia-mention-user"&gt;Mateja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try:&lt;/P&gt;&lt;PRE&gt;CountEmployeesOver30SickDays =&lt;BR /&gt;VAR DatePeriod = MAX('Dim Dates'[Date])&lt;BR /&gt;VAR Last12Months =&lt;BR /&gt;FILTER(&lt;BR /&gt;'Fact Employee Absence',&lt;BR /&gt;'Fact Employee Absence'[Absence Date FK] &amp;gt;= EDATE(DatePeriod, -12) &amp;amp;&amp;amp;&lt;BR /&gt;'Fact Employee Absence'[Absence Date FK] &amp;lt;= DatePeriod &amp;amp;&amp;amp;&lt;BR /&gt;RELATED('Dim Employee Wage Codes'[Absence Category]) = "Sick Leave"&lt;BR /&gt;)&lt;BR /&gt;VAR ContinuousSickPeriods =&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;Last12Months,&lt;BR /&gt;"PreviousAbsenceDate", &lt;BR /&gt;CALCULATE(MAX('Fact Employee Absence'[Absence Date FK]), &lt;BR /&gt;FILTER(Last12Months, &lt;BR /&gt;'Fact Employee Absence'[DIM_EMPLOYEES_FK] = EARLIER('Fact Employee Absence'[DIM_EMPLOYEES_FK]) &amp;amp;&amp;amp;&lt;BR /&gt;'Fact Employee Absence'[Absence Date FK] &amp;lt; EARLIER('Fact Employee Absence'[Absence Date FK]))),&lt;BR /&gt;"ConsecutiveDays", &lt;BR /&gt;DATEDIFF(&lt;BR /&gt;CALCULATE(MAX('Fact Employee Absence'[Absence Date FK]), &lt;BR /&gt;FILTER(Last12Months, &lt;BR /&gt;'Fact Employee Absence'[DIM_EMPLOYEES_FK] = EARLIER('Fact Employee Absence'[DIM_EMPLOYEES_FK]))),&lt;BR /&gt;'Fact Employee Absence'[Absence Date FK],&lt;BR /&gt;DAY&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;VAR EmployeeSickDays =&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;ContinuousSickPeriods,&lt;BR /&gt;'Fact Employee Absence'[DIM_EMPLOYEES_FK],&lt;BR /&gt;"TotalConsecutiveSickDays",&lt;BR /&gt;MAXX(FILTER(ContinuousSickPeriods, [ConsecutiveDays] &amp;gt; 0), [ConsecutiveDays])&lt;BR /&gt;)&lt;BR /&gt;VAR EmployeesOver30Days =&lt;BR /&gt;FILTER(&lt;BR /&gt;EmployeeSickDays,&lt;BR /&gt;[TotalConsecutiveSickDays] &amp;gt; 30&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS(EmployeesOver30Days)&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":love_letter:"&gt;💌&lt;/span&gt; &lt;STRONG&gt;If this helped, a Kudos &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; or Solution mark &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; would be great! &lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Kedar&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank" rel="noopener"&gt;Connect on LinkedIn&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 10:26:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4340681#M172356</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2024-12-23T10:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Employees with Over 30 Sick Days in R12M Using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4342168#M172429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363959" data-lia-user-login="Mateja" class="lia-mention lia-mention-user"&gt;Mateja&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To achieve your goal of counting employees who have more than 30 &lt;STRONG&gt;consecutive&lt;/STRONG&gt; sick days in a rolling 12-month period, your current measure needs significant refinement. This involves identifying sequences of consecutive days of sick leave and checking if any such sequence exceeds 30 days within the rolling period.&lt;/P&gt;
&lt;P&gt;Here's a refined DAX measure tailored to your requirement:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CountEmployeesOver30ConsecutiveSickDays = 
VAR DatePeriod = MAX('Dim Dates'[Date])
VAR Last12Months =
    FILTER(
        'Fact Employee Absence',
        'Fact Employee Absence'[Absence Date FK] &amp;gt;= EDATE(DatePeriod, -12) &amp;amp;&amp;amp;
        'Fact Employee Absence'[Absence Date FK] &amp;lt;= DatePeriod &amp;amp;&amp;amp;
        RELATED('Dim Employee Wage Codes'[Absence Category]) = "Sick Leave"
    )
VAR ConsecutiveSickDays =
    ADDCOLUMNS(
        Last12Months,
        "PreviousDay",
        EARLIER('Fact Employee Absence'[Absence Date FK]) - 1
    )
VAR GroupedConsecutiveSickDays =
    ADDCOLUMNS(
        ConsecutiveSickDays,
        "SickGroup",
        RANKX(
            FILTER(
                ConsecutiveSickDays,
                'Fact Employee Absence'[DIM_EMPLOYEES_FK] = EARLIER('Fact Employee Absence'[DIM_EMPLOYEES_FK])
            ),
            'Fact Employee Absence'[Absence Date FK] - 'Fact Employee Absence'[PreviousDay]
        )
    )
VAR SickDaysPerGroup =
    SUMMARIZE(
        GroupedConsecutiveSickDays,
        'Fact Employee Absence'[DIM_EMPLOYEES_FK],
        "MaxConsecutiveDays",
        MAXX(
            FILTER(
                GroupedConsecutiveSickDays,
                'Fact Employee Absence'[DIM_EMPLOYEES_FK] = EARLIER('Fact Employee Absence'[DIM_EMPLOYEES_FK])
            ),
            COUNTROWS()
        )
    )
VAR EmployeesOver30Days =
    FILTER(
        SickDaysPerGroup,
        [MaxConsecutiveDays] &amp;gt; 30
    )
RETURN
COUNTROWS(EmployeesOver30Days)
&lt;/LI-CODE&gt;
&lt;P&gt;The measure ensures that only absences within the last 12 months are considered by filtering dates using the EDATE function. It introduces logic to detect consecutive sick leave days by comparing each day with the previous day. Sick days are then grouped using a calculated "SickGroup," which organizes consecutive sick leave days for each employee into clusters. For each employee, the measure calculates the maximum streak of consecutive sick leave days within the rolling 12-month period. Finally, employees with streaks exceeding 30 days are identified as having long-term sickness.&lt;/P&gt;
&lt;P&gt;To implement this measure effectively, ensure that the relationships between the Fact Employee Absence table and the dimension tables (Dim Employee Wage Codes and Dim Dates) are correctly defined. Validate that the WageHours column accurately identifies valid sick leave records. Additionally, check for any gaps in the data that might disrupt the calculation of consecutive sick leave days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 13:45:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4342168#M172429</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-12-24T13:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Employees with Over 30 Sick Days in R12M Using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4342811#M172438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363959" data-lia-user-login="Mateja" class="lia-mention lia-mention-user"&gt;Mateja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here’s the core DAX logic to achieve this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CountEmployeesOver30ConsecutiveSickDays =
VAR Last12Months =
    FILTER(
        'Fact Employee Absence',
        'Fact Employee Absence'[Absence Date FK] &amp;gt;= EDATE(MAX('Dim Dates'[Date]), -12) &amp;amp;&amp;amp;
        RELATED('Dim Employee Wage Codes'[Absence Category]) = "Sick Leave"
    )
VAR ConsecutiveGroups =
    // Logic to calculate streaks and group them
VAR EmployeeMaxConsecutive =
    // Logic to calculate the max streak for each employee
RETURN
COUNTROWS(
    FILTER(EmployeeMaxConsecutive, [MaxConsecutiveDays] &amp;gt; 30)
)&lt;/LI-CODE&gt;&lt;P&gt;The measure counts employees who had more than 30 consecutive sick days in the last 12 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution, this will help others!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If my response(s) assisted you in any way, don't forget to drop me a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Poojara&lt;BR /&gt;Data Analyst | MSBI Developer | Power BI Consultant&lt;BR /&gt;&lt;STRONG&gt;Consider Subscribing my YouTube for Beginners/Advance Concepts:&lt;/STRONG&gt;&amp;nbsp;&lt;A href="https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS" target="_self"&gt;https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 08:30:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4342811#M172438</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2024-12-25T08:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Employees with Over 30 Sick Days in R12M Using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4342870#M172442</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363959" data-lia-user-login="Mateja" class="lia-mention lia-mention-user"&gt;Mateja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;CountEmployeesOver30SickDays =&lt;BR /&gt;VAR DateEnd =&lt;BR /&gt;MAX ( 'Dim Dates'[Date] )&lt;BR /&gt;VAR DateStart =&lt;BR /&gt;EDATE ( DateEnd, -11 )&lt;BR /&gt;VAR EmployeeAbsence =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'Fact Employee Absence',&lt;BR /&gt;'Fact Employee Absence'[Absence Date FK],&lt;BR /&gt;"@Count", COUNTROWS ( 'Fact Employee Absence' )&lt;BR /&gt;),&lt;BR /&gt;'Dim Dates'[Date] &amp;gt;= DateStart,&lt;BR /&gt;'Dim Dates'[Date] &amp;lt;= DateEnd,&lt;BR /&gt;ALL ( 'Dim Dates' ),&lt;BR /&gt;KEEPFILTERS ( 'Dim Employee Wage Codes'[Absence Category] = "Sick Leave" ),&lt;BR /&gt;KEEPFILTERS ( 'Fact Employee Absence'[WageHours] &amp;gt; 0 )&lt;BR /&gt;)&lt;BR /&gt;VAR Result =&lt;BR /&gt;COUNTROWS ( FILTER ( EmployeeAbsence, [@Count] &amp;gt; 30 ) )&lt;BR /&gt;RETURN&lt;BR /&gt;Result&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 10:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4342870#M172442</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-12-25T10:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Employees with Over 30 Sick Days in R12M Using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4343386#M172457</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;Based on the testing, creating the sample table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then, using the following DAX formula to create new measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CountEmployeesOver30SickDays = 
VAR DatePeriod = MAX('Dim Dates'[Date])
VAR Last12Months =
FILTER(
'Fact Employee Absence',
'Fact Employee Absence'[Absence Date FK] &amp;gt;= EDATE(DatePeriod, -12) &amp;amp;&amp;amp;
'Fact Employee Absence'[Absence Date FK] &amp;lt;= DatePeriod &amp;amp;&amp;amp;
RELATED('Dim Employee Wage Codes'[Absence Category]) = "Sick Leave"
)
VAR EmployeeSickDays =
SUMMARIZE(
Last12Months,
'Fact Employee Absence'[DIM_EMPLOYEES_FK],
"TotalSickDays",
CALCULATE(
DISTINCTCOUNT('Fact Employee Absence'[Absence Date FK]),
'Fact Employee Absence'[WageHours] &amp;gt; 0
)
)
VAR EmployeesOver30Days =
FILTER(
EmployeeSickDays,
[TotalSickDays] &amp;gt; 30
)
RETURN
COUNTROWS(EmployeesOver30Days)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result is shown below. In the sample data, two employees are sick for more than 30 days.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Besides, check if any filter has been applied to the employee absence table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 09:08:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4343386#M172457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-30T09:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Employees with Over 30 Sick Days in R12M Using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4346153#M172601</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have accepted it as a solution, it does calculate the number of employees having more than 30 days sick in last 12 months. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 10:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4346153#M172601</guid>
      <dc:creator>Mateja</dc:creator>
      <dc:date>2024-12-30T10:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Employees with Over 30 Sick Days in R12M Using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4346159#M172602</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to answer and describe the logic. This help to understand how the steps must be set up in order for measure to function.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When trying to utilise the measure the error comes at line 14 for var&lt;/P&gt;&lt;PRE&gt;VAR ConsecutiveSickDays =&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;'EARLIER/EARLIEST refers to an earlier row context which doesn't exist.'&lt;BR /&gt;&lt;BR /&gt;How can we work around this error? I understand that the Last12Month table contains that filter context because it is a filtered table from Fact Absence but I do not know how to resolve the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 10:24:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Employees-with-Over-30-Sick-Days-in-R12M-Using-DAX/m-p/4346159#M172602</guid>
      <dc:creator>Mateja</dc:creator>
      <dc:date>2024-12-30T10:24:48Z</dc:date>
    </item>
  </channel>
</rss>

