<?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: Running count that resets in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-count-that-resets/m-p/2126662#M48784</link>
    <description>&lt;P&gt;This worked a treat, I used the PQ version in the end. Thanks for quick help.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Oct 2021 08:59:21 GMT</pubDate>
    <dc:creator>ThornTech</dc:creator>
    <dc:date>2021-10-11T08:59:21Z</dc:date>
    <item>
      <title>Running count that resets</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-count-that-resets/m-p/2125637#M48762</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set where I want to count the number of Loss or wins in a row, but reset each time it switches to the new name like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Win&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Win&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Win&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Loss&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Loss&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Win&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Win&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Trade UID is the main index for this table that is unique.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance on how to do this would be great, I've tried quite a few different things and the closest I can get it to create a running count, but can't get it to reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A sample of the dataset can be found here:&amp;nbsp;&lt;A title="Dataset" href="https://1drv.ms/u/s!Ag_sNauqdCgpg95oGmGBlk9NJrf0Uw?e=hICHI1" target="_blank" rel="noopener"&gt;https://1drv.ms/u/s!Ag_sNauqdCgpg95oGmGBlk9NJrf0Uw?e=hICHI1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 15:32:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-count-that-resets/m-p/2125637#M48762</guid>
      <dc:creator>ThornTech</dc:creator>
      <dc:date>2021-10-10T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running count that resets</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-count-that-resets/m-p/2125713#M48763</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PQ and Excel formula are way much conciser and more straightforward,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Grouped = Table.RemoveColumns(Table.Group(Source, "PnL Text", {"ar", each Table.AddIndexColumn(_, "Streak_PQ", 1)}, 0), "PnL Text")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 18:06:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-count-that-resets/m-p/2125713#M48763</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2021-10-10T18:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Running count that resets</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-count-that-resets/m-p/2126662#M48784</link>
      <description>&lt;P&gt;This worked a treat, I used the PQ version in the end. Thanks for quick help.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 08:59:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-count-that-resets/m-p/2126662#M48784</guid>
      <dc:creator>ThornTech</dc:creator>
      <dc:date>2021-10-11T08:59:21Z</dc:date>
    </item>
  </channel>
</rss>

