<?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: Convert excel function to DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116636#M16331</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;, Pleaee attach&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2020 17:55:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-24T17:55:54Z</dc:date>
    <item>
      <title>Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116525#M16301</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody help me to convert this excel pivot table function to DAX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure =COUNTIFS ([Child ID],[@[Child ID]],[Child is Present?], FALSE(),[Attendance Date],"&amp;lt;="&amp;amp;([@[Attendance Date]]+2),[Attendance Date],"&amp;gt;="&amp;amp;[@[Attendance Date]]&amp;gt;=3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 13:44:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116525#M16301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T13:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116529#M16302</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; Please share your sample table and expected output&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 13:59:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116529#M16302</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-05-24T13:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116550#M16307</link>
      <description>&lt;P&gt;Hi my friend,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the link of sampel data on excel file:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A title="Sample Data" href="https://www.dropbox.com/scl/fi/ddxcirmxaop4217y9z6p0/SampleData.xlsx?dl=0&amp;amp;rlkey=tibvev0k9ve2o2gg2y5cxgp26" target="_self"&gt;Sample Data on Excel&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the link of Pbix file:&lt;/P&gt;&lt;P&gt;&lt;A title="Sample Data Pbix" href="https://www.dropbox.com/s/udbg4j1aue5rsxl/SampleData.pbix?dl=0" target="_self"&gt;Sample Data Power BI&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 14:52:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116550#M16307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T14:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116561#M16310</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain what the measure is supposed to do and where/how you are going to use it (in a visual, with what fields in the visual, etc.)?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 15:08:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116561#M16310</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-05-24T15:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116568#M16313</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have attached the excel file containing excel functions in columns H and I. I ask for your help to change that function to DAX function. I will add two new columns to Power BI. &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;The conversion result of the excel function in Column H will be used as a start date when the child is not present in class&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The conversion result of the excel function in column I is end date when child absent and just an evaluation of how many days the child is absent.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I try to see consecutive days in a more systematic way. But the disadvantage of the excel function is working days in a year. Can you help me with this too by including holidays like Sundays in the calculation. After that I will make count of start absent days to get the total children who has absent 3 or more consecutive days in a year.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 15:32:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116568#M16313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T15:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116575#M16314</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;- See if this assists:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Excel-to-DAX-Translation/ba-p/1060991" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Excel-to-DAX-Translation/ba-p/1060991&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 15:37:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116575#M16314</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-24T15:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116580#M16316</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you do not need a measure but calculated columns, it seems. In any case, please explain the ultimate result you want out of this, instead of talking about translating formulae from Excel. The approach in DAX will probably be different. Do you want to identify the children that have been abstent at least three days in a row? Do you want to count them? What do you need exactly???&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 15:51:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116580#M16316</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-05-24T15:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116581#M16317</link>
      <description>&lt;P&gt;Thanks bro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This help me a little. Thank you.&lt;/P&gt;&lt;P&gt;I am very happy if you help me on this and I will learn what you have done to this. Please&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 15:53:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116581#M16317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T15:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116582#M16318</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Consecutive Absences of 3 or more days = 
IF (
    COUNTX (
        FILTER (
            AttendanceMaster,
            'AttendanceMaster'[ChildID]
                = EARLIER ( 'AttendanceMaster'[ChildID] )
                &amp;amp;&amp;amp; 'AttendanceMaster'[AttendanceDate]
                    IN {
                        EARLIER ( AttendanceMaster[AttendanceDate] ),
                        EARLIER ( AttendanceMaster[AttendanceDate] ) + 1,
                        EARLIER ( AttendanceMaster[AttendanceDate] ) - 1
                    }
                &amp;amp;&amp;amp; AttendanceMaster[IsPresent]
                    = FALSE ()
        ),
        AttendanceMaster[AttendanceDate]
    ) = 3,
    "Yes",
    "No"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Appreciate with a kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 16:33:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116582#M16318</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-05-24T16:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116583#M16319</link>
      <description>&lt;P&gt;Yes,&amp;nbsp; I want to count&amp;nbsp;&lt;SPAN&gt;the children that have been abstent at least three days in a row. But in other case I need to identify the absent start date and absent end date for each children by adding 2 colomn on BI. How about your opinion?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 16:03:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116583#M16319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116586#M16320</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="32333" data-lia-user-login="nandukrishnavs" class="lia-mention lia-mention-user"&gt;nandukrishnavs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks bro. I will try this DAX function. I will let you know if this work well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 16:05:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116586#M16320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T16:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116599#M16321</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="32333" data-lia-user-login="nandukrishnavs" class="lia-mention lia-mention-user"&gt;nandukrishnavs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. The DAX is working well.&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>Sun, 24 May 2020 16:38:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116599#M16321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T16:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116603#M16323</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This calculate column will give you the date on which the absence starts (will return only non-blank on the rows where an absence starts):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;First date of absence =
IF (
    NOT AttendanceMaster[IsPresent];
    VAR NextPresence_ =
        CALCULATE (
            MIN ( AttendanceMaster[AttendanceDate] );
            ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
            AttendanceMaster[AttendanceDate] &amp;gt; EARLIER ( AttendanceMaster[AttendanceDate] );
            AttendanceMaster[IsPresent] = TRUE ()
        )
    VAR lastAbsenceDay_ =
        CALCULATE (
            MAX ( AttendanceMaster[AttendanceDate] );
            ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
            AttendanceMaster[AttendanceDate] &amp;lt; NextPresence_
        )
    VAR NumConsecutiveAbsentDays_ =
        CALCULATE (
            COUNT ( AttendanceMaster[AttendanceDate] );
            ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
            AttendanceMaster[AttendanceDate] &amp;gt;= EARLIER ( AttendanceMaster[AttendanceDate] );
            AttendanceMaster[AttendanceDate] &amp;lt; NextPresence_
        )
    VAR isStartOfAbsence =
        VAR previousDate_ =
            CALCULATE (
                MAX ( AttendanceMaster[AttendanceDate] );
                ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
                AttendanceMaster[AttendanceDate] &amp;lt; EARLIER ( AttendanceMaster[AttendanceDate] )
            )
        RETURN
            IF (
                ISBLANK ( previousDate_ );
                TRUE ();
                CALCULATE (
                    DISTINCT ( AttendanceMaster[IsPresent] );
                    ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
                    AttendanceMaster[AttendanceDate] = previousDate_
                )
            )
    RETURN
        IF ( isStartOfAbsence; AttendanceMaster[AttendanceDate] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 16:50:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116603#M16323</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-05-24T16:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116606#M16324</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. I will check it and let you know if DAX work well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me again for the end date of absent if you want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 16:56:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116606#M16324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T16:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116609#M16325</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This calculated column will give you the date on which the absence ENDS (will return only non-blank on the rows where an absence starts). Do note that the code is practically the same as the previous one, it just retunrs something different (a different VAR). The code calculates quite a number of VARS&amp;nbsp; so you can use them to return other things you might be interested in (such as the number of consecutive absence days)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last date of absence =
IF (
    NOT AttendanceMaster[IsPresent];
    VAR NextPresence_ =
        CALCULATE (
            MIN ( AttendanceMaster[AttendanceDate] );
            ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
            AttendanceMaster[AttendanceDate] &amp;gt; EARLIER ( AttendanceMaster[AttendanceDate] );
            AttendanceMaster[IsPresent] = TRUE ()
        )
    VAR lastAbsenceDay_ =
        CALCULATE (
            MAX ( AttendanceMaster[AttendanceDate] );
            ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
            AttendanceMaster[AttendanceDate] &amp;lt; NextPresence_
        )
    VAR NumConsecutiveAbsentDays_ =
        CALCULATE (
            COUNT ( AttendanceMaster[AttendanceDate] );
            ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
            AttendanceMaster[AttendanceDate] &amp;gt;= EARLIER ( AttendanceMaster[AttendanceDate] );
            AttendanceMaster[AttendanceDate] &amp;lt; NextPresence_
        )
    VAR isStartOfAbsence =
        VAR previousDate_ =
            CALCULATE (
                MAX ( AttendanceMaster[AttendanceDate] );
                ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
                AttendanceMaster[AttendanceDate] &amp;lt; EARLIER ( AttendanceMaster[AttendanceDate] )
            )
        RETURN
            IF (
                ISBLANK ( previousDate_ );
                TRUE ();
                CALCULATE (
                    DISTINCT ( AttendanceMaster[IsPresent] );
                    ALLEXCEPT ( AttendanceMaster; AttendanceMaster[ChildID] );
                    AttendanceMaster[AttendanceDate] = previousDate_
                )
            )
    RETURN
        IF ( isStartOfAbsence; lastAbsenceDay_ )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 17:17:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116609#M16325</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-05-24T17:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116611#M16326</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start date of the student who had absent 3 or more days in a month.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;start Date = 
VAR countVal =
    COUNTX (
        FILTER (
            AttendanceMaster,
            'AttendanceMaster'[ChildID]
                = EARLIER ( 'AttendanceMaster'[ChildID] )
                &amp;amp;&amp;amp; MONTH ( 'AttendanceMaster'[AttendanceDate] )
                    = MONTH (
                        EARLIER ( AttendanceMaster[AttendanceDate] )
                    )
                &amp;amp;&amp;amp; AttendanceMaster[IsPresent]
                    = FALSE ()
        ),
        AttendanceMaster[AttendanceDate]
    )
VAR result =
    IF (
        countVal &amp;gt;= 3,
        MINX (
            FILTER (
                AttendanceMaster,
                AttendanceMaster[ChildID]
                    = EARLIER ( AttendanceMaster[ChildID] )
                    &amp;amp;&amp;amp; MONTH ( AttendanceMaster[AttendanceDate] )
                        = MONTH (
                            EARLIER ( AttendanceMaster[AttendanceDate] )
                        ) &amp;amp;&amp;amp; AttendanceMaster[IsPresent]
                    = FALSE ()
            ),
            AttendanceMaster[AttendanceDate]
        ),
        BLANK ()
    )
RETURN
    result&lt;/LI-CODE&gt;&lt;P&gt;End date of the student who had absent 3 or more days in a month.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;end Date = 
VAR countVal =
    COUNTX (
        FILTER (
            AttendanceMaster,
            'AttendanceMaster'[ChildID]
                = EARLIER ( 'AttendanceMaster'[ChildID] )
                &amp;amp;&amp;amp; MONTH ( 'AttendanceMaster'[AttendanceDate] )
                    = MONTH (
                        EARLIER ( AttendanceMaster[AttendanceDate] )
                    )
                &amp;amp;&amp;amp; AttendanceMaster[IsPresent]
                    = FALSE ()
        ),
        AttendanceMaster[AttendanceDate]
    )
VAR result =
    IF (
        countVal &amp;gt;= 3,
        MAXX(
            FILTER (
                AttendanceMaster,
                AttendanceMaster[ChildID]
                    = EARLIER ( AttendanceMaster[ChildID] )
                    &amp;amp;&amp;amp; MONTH ( AttendanceMaster[AttendanceDate] )
                        = MONTH (
                            EARLIER ( AttendanceMaster[AttendanceDate] )
                        ) &amp;amp;&amp;amp; AttendanceMaster[IsPresent]
                    = FALSE ()
            ),
            AttendanceMaster[AttendanceDate]
        ),
        BLANK ()
    )
RETURN
    result&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Appreciate with a kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my latest blog&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Dynamic-Page-Navigation-Based-on-User-Login/ba-p/1097786" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Dynamic-Page-Navigation-Based-on-User-Login/ba-p/1097786&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 17:08:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116611#M16326</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-05-24T17:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116619#M16327</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your DAX not work on my BI because "A table of multiple values was supplied where a singel value was expected".&lt;/P&gt;&lt;P&gt;How to fix this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 17:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116619#M16327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T17:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116621#M16328</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="32333" data-lia-user-login="nandukrishnavs" class="lia-mention lia-mention-user"&gt;nandukrishnavs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try this. Thank you. I will let you know if this DAX work well&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 17:30:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116621#M16328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T17:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116636#M16331</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;, Pleaee attach&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 17:55:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116636#M16331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-24T17:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel function to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116637#M16332</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you running it on the same data you shared? It's working fine on my side&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving kudos if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 17:56:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-excel-function-to-DAX/m-p/1116637#M16332</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-05-24T17:56:31Z</dc:date>
    </item>
  </channel>
</rss>

