<?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 Count number of consecutive values and sequence in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-consecutive-values-and-sequence/m-p/2362818#M60431</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully someone can point me in the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to count the number of occurrences of consecutive point won within a tennis match. I would like to count how many times a player wins just 1 point, 2 points in a row, 3 points in a row, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Point won by&lt;/P&gt;&lt;P&gt;Player A&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;Player A&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here player A has won 1 point 2 times&lt;/P&gt;&lt;P&gt;Player B has won 2 points in a row once, and also 3 points in a row once.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have a measure for each sequence values (ie a measure for how many times player A wins 1 point in a row, another measure for when player A wins 2 points in a row, another for how many times they win 3 points in a row, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect I will need to use EARLIER function and an index column but not sure how to put it all together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
    <pubDate>Sun, 27 Feb 2022 11:05:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-27T11:05:05Z</dc:date>
    <item>
      <title>Count number of consecutive values and sequence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-consecutive-values-and-sequence/m-p/2362818#M60431</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully someone can point me in the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to count the number of occurrences of consecutive point won within a tennis match. I would like to count how many times a player wins just 1 point, 2 points in a row, 3 points in a row, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Point won by&lt;/P&gt;&lt;P&gt;Player A&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;Player A&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;Player B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here player A has won 1 point 2 times&lt;/P&gt;&lt;P&gt;Player B has won 2 points in a row once, and also 3 points in a row once.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have a measure for each sequence values (ie a measure for how many times player A wins 1 point in a row, another measure for when player A wins 2 points in a row, another for how many times they win 3 points in a row, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect I will need to use EARLIER function and an index column but not sure how to put it all together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 11:05:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-consecutive-values-and-sequence/m-p/2362818#M60431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-27T11:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of consecutive values and sequence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-consecutive-values-and-sequence/m-p/2362867#M60435</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the picture down below and the attached pbix file.&lt;/P&gt;
&lt;P&gt;All steps of measures are written down in the attached file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 13:02:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-consecutive-values-and-sequence/m-p/2362867#M60435</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-02-27T13:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of consecutive values and sequence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-consecutive-values-and-sequence/m-p/2363082#M60449</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Excel worksheet formula is powerful enough to deal with this simple quesiton&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 01:44:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-consecutive-values-and-sequence/m-p/2363082#M60449</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2022-02-28T01:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of consecutive values and sequence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-consecutive-values-and-sequence/m-p/2367139#M60626</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you both for your replies.... They both work great! I will now look to see if I can fully understand the workings of each solution &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again it's much appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 11:06:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-consecutive-values-and-sequence/m-p/2367139#M60626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-01T11:06:02Z</dc:date>
    </item>
  </channel>
</rss>

