<?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: How to check consecutive numbers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2011045#M44705</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I don't have any Date column... Just the "consecutive" numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I adapt the DAX to my problem?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 16:19:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-11T16:19:46Z</dc:date>
    <item>
      <title>How to check consecutive numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2010629#M44682</link>
      <description>&lt;P&gt;Hello mates!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one doubt.&lt;/P&gt;&lt;P&gt;I have this Excel:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So, I want to know if I don't have consecutive numbers.&lt;/P&gt;&lt;P&gt;Something like, if row number is row number - last row number = 1, it's ok. If it's 2, we have a not consecutive number.&lt;/P&gt;&lt;P&gt;Numbers are examples, I could have some message like "Not consecutive!" or something like that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;Just cheking if column has consecutive numbers and knowing where is the "jump".&lt;/P&gt;&lt;P&gt;Thank you so much! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 13:16:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2010629#M44682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-11T13:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to check consecutive numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2010783#M44693</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;See my article on Mean Time Between Failure (MTBF) which uses EARLIER: &lt;A href="http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586" target="_blank"&gt;http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586&lt;/A&gt;.&lt;BR /&gt;The basic pattern is:&lt;BR /&gt;Column =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; VAR __Current = [Value]&lt;BR /&gt;&amp;nbsp; VAR __PreviousDate = MAXX(FILTER('Table','Table'[Date] &amp;lt; EARLIER('Table'[Date])),[Date])&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; VAR __Previous = MAXX(FILTER('Table',[Date]=__PreviousDate),[Value])&lt;BR /&gt;RETURN&lt;BR /&gt;&amp;nbsp; __Current - __Previous&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2010783#M44693</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-08-11T14:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to check consecutive numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2011045#M44705</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I don't have any Date column... Just the "consecutive" numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I adapt the DAX to my problem?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 16:19:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2011045#M44705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-11T16:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to check consecutive numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2011080#M44707</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Correct, so you would substitute your consequetive number column for the date column. So, like the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
  VAR __Current = [ConsequetiveNumberColumn]
  VAR __Previous = MAXX(FILTER('Table','Table'[ConsequetiveNumberColumn] &amp;lt; EARLIER('Table'[ConsequetiveNumberColumn])),[ConsequetiveNumberColumn])
RETURN
  __Current - __Previous

&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Aug 2021 16:45:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2011080#M44707</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-08-11T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to check consecutive numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2012500#M44727</link>
      <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It seems that didn't work:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Var current and EARLIER don't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;First one, the var says that 'Cannot find name' and it exists 100%.&lt;/P&gt;&lt;P&gt;The other one, 'Parameter is not the correct type'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea to solve these?&lt;/P&gt;&lt;P&gt;Thanks! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 08:32:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2012500#M44727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-12T08:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to check consecutive numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2012789#M44731</link>
      <description>&lt;P&gt;Oops, I tried again.&lt;/P&gt;&lt;P&gt;That worked!!! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks mate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 10:23:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-consecutive-numbers/m-p/2012789#M44731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-12T10:23:36Z</dc:date>
    </item>
  </channel>
</rss>

