<?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 total based on time in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1502522#M621663</link>
    <description>&lt;P&gt;Apologies, I should have been more clear. When creating the mockup file I noticed that the measure does indeed work. However, the measure does not take into account my slicers (date and item number right now), which I failed to mention in my opening post. Is there a way to adjust the measure so that slicers are always taken into account? Or how can I manually include this?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 15:45:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-18T15:45:04Z</dc:date>
    <item>
      <title>Running total based on time</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1493048#M619054</link>
      <description>&lt;P&gt;I have the following table that I want to use as a running total for an area chart + a matrix visual:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Additionally, for my table the day doesnt end at 00:00, but after 03:00 am (see last line). I've created an additional column to use the "sort by column" function (along the lines of column = if time &amp;lt; 03:00 then X else X).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I create a running total based on time? I tried a view solutions from Google results, but none seem to work. Using the quick measure for running total doesnt work either.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 14:28:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1493048#M619054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-13T14:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Running total based on time</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1493216#M619106</link>
      <description>&lt;P&gt;Not sure you mean with your sort order column but this measure expression should give you your running total based on time column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RT&amp;nbsp;=&lt;BR /&gt;&lt;SPAN class="Keyword" style="color: #035aca;"&gt;VAR&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Variable" style="color: #49b0af;"&gt;thistime&lt;/SPAN&gt;&amp;nbsp;=&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword" style="color: #035aca;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN class="Parenthesis" style="color: #808080;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;Table[TimeColumn]&amp;nbsp;&lt;SPAN class="Parenthesis" style="color: #808080;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Keyword" style="color: #035aca;"&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword" style="color: #035aca;"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis" style="color: #808080;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword" style="color: #035aca;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN class="Parenthesis" style="color: #808080;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;Table[ValueColumn]&amp;nbsp;&lt;SPAN class="Parenthesis" style="color: #808080;"&gt;)&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword" style="color: #035aca;"&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN class="Parenthesis" style="color: #808080;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;Table[TimeColumn]&amp;nbsp;&lt;SPAN class="Parenthesis" style="color: #808080;"&gt;)&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Table[TimeColumn]&amp;nbsp;&amp;lt;=&amp;nbsp;&lt;SPAN class="Variable" style="color: #49b0af;"&gt;thistime&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis" style="color: #808080;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Replace the table and column names with the actual ones in your model.&amp;nbsp; Use the measure in a visual with the Time column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1493216#M619106</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-11-13T16:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running total based on time</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1495817#M619803</link>
      <description>&lt;P&gt;I tried your formula and it seems to be exactly what I was looking for, however, it seems to reset on negatives/positives:&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;</description>
      <pubDate>Mon, 16 Nov 2020 08:42:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1495817#M619803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-16T08:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Running total based on time</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1500832#M621190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have a date column? Or just a Time column?&lt;/P&gt;
&lt;P&gt;We create a sample and it doesn’t reset on negatives/positives.&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;Could you please provide a mockup sample based on fake data or describe the fields of each tables and the relations between tables simply?&lt;/P&gt;
&lt;P&gt;It will be helpful if you can show us the exact expected result based on the tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Community Support Team _ zhenbw&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 06:27:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1500832#M621190</guid>
      <dc:creator>v-zhenbw-msft</dc:creator>
      <dc:date>2020-11-18T06:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running total based on time</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1502522#M621663</link>
      <description>&lt;P&gt;Apologies, I should have been more clear. When creating the mockup file I noticed that the measure does indeed work. However, the measure does not take into account my slicers (date and item number right now), which I failed to mention in my opening post. Is there a way to adjust the measure so that slicers are always taken into account? Or how can I manually include this?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 15:45:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1502522#M621663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-18T15:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Running total based on time</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1506482#M622663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are the date and item number column from the same table?&lt;/P&gt;
&lt;P&gt;Do you mean creating the slicer like this?&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;If yes, you can try this measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RT = 
VAR thistime =
    MIN ( 'Table'[Time] )
RETURN
    CALCULATE (
        SUM ( 'Table'[value] ),
        FILTER(
            ALLSELECTED ( 'Table' ),
        'Table'[Time] &amp;lt;= thistime
    ))
&lt;/LI-CODE&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;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Community Support Team _ zhenbw&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, pbix as attached.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 06:33:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Running-total-based-on-time/m-p/1506482#M622663</guid>
      <dc:creator>v-zhenbw-msft</dc:creator>
      <dc:date>2020-11-20T06:33:49Z</dc:date>
    </item>
  </channel>
</rss>

