<?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: Consecutive Fail for last 4 months _ in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3542147#M136142</link>
    <description>&lt;P&gt;Please help me in this.. Please..&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 10:17:31 GMT</pubDate>
    <dc:creator>RatanBhushan_05</dc:creator>
    <dc:date>2023-11-20T10:17:31Z</dc:date>
    <item>
      <title>Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3315970#M124071</link>
      <description>&lt;P&gt;Hi team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to highlight every month if prior to 3 months are consecutive failures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the PBI File as sample. Please help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Matrix view it should highlite when there are 3 consecvutive failures. Please please please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 10:16:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3315970#M124071</guid>
      <dc:creator>RatanBhushan_05</dc:creator>
      <dc:date>2023-07-05T10:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3319694#M124226</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584714" data-lia-user-login="RatanBhushan_05" class="lia-mention lia-mention-user"&gt;RatanBhushan_05&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _a = COUNTX(FILTER(ALL('Table'),[KPI]=SELECTEDVALUE('Table'[KPI])&amp;amp;&amp;amp;[Date]&amp;gt;EOMONTH(SELECTEDVALUE('Table'[Date]),-1)&amp;amp;&amp;amp;[Date]&amp;lt;=EOMONTH(SELECTEDVALUE('Table'[Date]),3)&amp;amp;&amp;amp;[Value]="Fail"),[Value])
var _b = COUNTX(FILTER(ALL('Table'),[KPI]=SELECTEDVALUE('Table'[KPI])&amp;amp;&amp;amp;[Date]&amp;gt;EOMONTH(SELECTEDVALUE('Table'[Date]),-2)&amp;amp;&amp;amp;[Date]&amp;lt;=EOMONTH(SELECTEDVALUE('Table'[Date]),2)&amp;amp;&amp;amp;[Value]="Fail"),[Value])
var _c = COUNTX(FILTER(ALL('Table'),[KPI]=SELECTEDVALUE('Table'[KPI])&amp;amp;&amp;amp;[Date]&amp;gt;EOMONTH(SELECTEDVALUE('Table'[Date]),-3)&amp;amp;&amp;amp;[Date]&amp;lt;=EOMONTH(SELECTEDVALUE('Table'[Date]),1)&amp;amp;&amp;amp;[Value]="Fail"),[Value])
var _d = COUNTX(FILTER(ALL('Table'),[KPI]=SELECTEDVALUE('Table'[KPI])&amp;amp;&amp;amp;[Date]&amp;gt;EOMONTH(SELECTEDVALUE('Table'[Date]),-4)&amp;amp;&amp;amp;[Date]&amp;lt;=EOMONTH(SELECTEDVALUE('Table'[Date]),0)&amp;amp;&amp;amp;[Value]="Fail"),[Value])
return IF(_a=4||_b=4||_c=4||_d=4,"Green","White")&lt;/LI-CODE&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&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;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 06:02:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3319694#M124226</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2023-07-07T06:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3329379#M124724</link>
      <description>&lt;P&gt;This is just perfect - Thank you so much -&amp;nbsp;&lt;BR /&gt;Could you please little try to debried what is happening here - please.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3329379#M124724</guid>
      <dc:creator>RatanBhushan_05</dc:creator>
      <dc:date>2023-07-13T12:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3330309#M124785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584714" data-lia-user-login="RatanBhushan_05" class="lia-mention lia-mention-user"&gt;RatanBhushan_05&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its calculation logic is this:&lt;/P&gt;
&lt;P&gt;imagine four consecutive months as four fixed positions, consider the current month in the four positions respectively, that is, the variables a, b,c,d as long as one of these four variables meets the requirements, then it means that it is in the four consecutive months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Jianbo Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 01:35:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3330309#M124785</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2023-07-14T01:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3330316#M124786</link>
      <description>Just to make another scenario - if year changes and we have to count 4 months again from next year Jan - could you please try for that also.? It will be a big favour.</description>
      <pubDate>Fri, 14 Jul 2023 01:38:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3330316#M124786</guid>
      <dc:creator>RatanBhushan_05</dc:creator>
      <dc:date>2023-07-14T01:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3330581#M124798</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584714" data-lia-user-login="RatanBhushan_05" class="lia-mention lia-mention-user"&gt;RatanBhushan_05&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _a =
    COUNTX (
        FILTER (
            ALL ( 'Table' ),
            [KPI] = SELECTEDVALUE ( 'Table'[KPI] )
                &amp;amp;&amp;amp; [Date] &amp;gt; EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), -1 )
                &amp;amp;&amp;amp; [Date] &amp;lt;= EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), 3 )
                &amp;amp;&amp;amp; YEAR ( [Date] ) = YEAR ( SELECTEDVALUE ( 'Table'[Date] ) )
                &amp;amp;&amp;amp; [Value] = "Fail"
        ),
        [Value]
    )
VAR _b =
    COUNTX (
        FILTER (
            ALL ( 'Table' ),
            [KPI] = SELECTEDVALUE ( 'Table'[KPI] )
                &amp;amp;&amp;amp; [Date] &amp;gt; EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), -2 )
                &amp;amp;&amp;amp; [Date] &amp;lt;= EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), 2 )
                &amp;amp;&amp;amp; YEAR ( [Date] ) = YEAR ( SELECTEDVALUE ( 'Table'[Date] ) )
                &amp;amp;&amp;amp; [Value] = "Fail"
        ),
        [Value]
    )
VAR _c =
    COUNTX (
        FILTER (
            ALL ( 'Table' ),
            [KPI] = SELECTEDVALUE ( 'Table'[KPI] )
                &amp;amp;&amp;amp; [Date] &amp;gt; EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), -3 )
                &amp;amp;&amp;amp; [Date] &amp;lt;= EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), 1 )
                &amp;amp;&amp;amp; YEAR ( [Date] ) = YEAR ( SELECTEDVALUE ( 'Table'[Date] ) )
                &amp;amp;&amp;amp; [Value] = "Fail"
        ),
        [Value]
    )
VAR _d =
    COUNTX (
        FILTER (
            ALL ( 'Table' ),
            [KPI] = SELECTEDVALUE ( 'Table'[KPI] )
                &amp;amp;&amp;amp; [Date] &amp;gt; EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), -4 )
                &amp;amp;&amp;amp; [Date] &amp;lt;= EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), 0 )
                &amp;amp;&amp;amp; YEAR ( [Date] ) = YEAR ( SELECTEDVALUE ( 'Table'[Date] ) )
                &amp;amp;&amp;amp; [Value] = "Fail"
        ),
        [Value]
    )
RETURN
    IF ( _a = 4 || _b = 4 || _c = 4 || _d = 4, "Green", "White" )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jianbo Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 05:14:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3330581#M124798</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2023-07-14T05:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3330842#M124815</link>
      <description>&lt;P&gt;You are a gem of a person.&amp;nbsp;&lt;BR /&gt;Love from India&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 07:39:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3330842#M124815</guid>
      <dc:creator>RatanBhushan_05</dc:creator>
      <dc:date>2023-07-14T07:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3348319#M125725</link>
      <description>&lt;P&gt;Hi Jianbo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please look into one more thing which I have been trying -&amp;nbsp;&lt;BR /&gt;If I want to see in the same table the running total - but the catch is if any month is blank then running total will start from one again -&lt;BR /&gt;&lt;BR /&gt;&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;</description>
      <pubDate>Tue, 25 Jul 2023 08:44:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3348319#M125725</guid>
      <dc:creator>RatanBhushan_05</dc:creator>
      <dc:date>2023-07-25T08:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3348325#M125726</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As you can see in the attached pic - i have been trying but insted of starting from 1 it is starting from same previous running total&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 08:45:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3348325#M125726</guid>
      <dc:creator>RatanBhushan_05</dc:creator>
      <dc:date>2023-07-25T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Fail for last 4 months _</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3542147#M136142</link>
      <description>&lt;P&gt;Please help me in this.. Please..&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 10:17:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consecutive-Fail-for-last-4-months/m-p/3542147#M136142</guid>
      <dc:creator>RatanBhushan_05</dc:creator>
      <dc:date>2023-11-20T10:17:31Z</dc:date>
    </item>
  </channel>
</rss>

