<?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 Running total line until last day from chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2789908#M87564</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new in dax.&lt;/P&gt;&lt;P&gt;Problem: I have a table which have 3 columns (ID,TYPE,DATE).&amp;nbsp;ID+TYPE is unique combination.&lt;/P&gt;&lt;P&gt;I create running total measure:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DistinctCountID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FILTER(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ALLSELECTED(DATE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ISONORAFTER(DATE,&amp;nbsp;MAX(DATE),&amp;nbsp;DESC)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The result of the CHART IS:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But I would like to see this:&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;How can I rewrite the query to be able to see the redline&amp;nbsp;at least a straight, if there will be no data for red TYPE in the last DATE in the chart?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(BTW: I can't create another simple table, because the ID is used in model for filtering)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 13:20:52 GMT</pubDate>
    <dc:creator>LiborK</dc:creator>
    <dc:date>2022-09-23T13:20:52Z</dc:date>
    <item>
      <title>Running total line until last day from chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2789908#M87564</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new in dax.&lt;/P&gt;&lt;P&gt;Problem: I have a table which have 3 columns (ID,TYPE,DATE).&amp;nbsp;ID+TYPE is unique combination.&lt;/P&gt;&lt;P&gt;I create running total measure:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DistinctCountID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FILTER(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ALLSELECTED(DATE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ISONORAFTER(DATE,&amp;nbsp;MAX(DATE),&amp;nbsp;DESC)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The result of the CHART IS:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But I would like to see this:&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;How can I rewrite the query to be able to see the redline&amp;nbsp;at least a straight, if there will be no data for red TYPE in the last DATE in the chart?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(BTW: I can't create another simple table, because the ID is used in model for filtering)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:20:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2789908#M87564</guid>
      <dc:creator>LiborK</dc:creator>
      <dc:date>2022-09-23T13:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Running total line until last day from chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2790761#M87612</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="389851" data-lia-user-login="LiborK" class="lia-mention lia-mention-user"&gt;LiborK&lt;/a&gt; , You shoudl use a date table, marked as date table joined with you date of table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;/P&gt;
&lt;P&gt;Distinctcount(Table[ID]) ,&lt;/P&gt;
&lt;P&gt;FILTER(&lt;/P&gt;
&lt;P&gt;ALLSELECTED('Date') , 'Date'[Date] &amp;lt;= Max('Date'[Date]) &lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling Days Formula: &lt;A href="https://youtu.be/cJVj5nhkKBw" target="_blank"&gt;https://youtu.be/cJVj5nhkKBw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 02:31:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2790761#M87612</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-24T02:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running total line until last day from chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2795372#M87816</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="389851" data-lia-user-login="LiborK" class="lia-mention lia-mention-user"&gt;LiborK&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;Sample data:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER(ALL('Table'),[Date]&amp;lt;=SELECTEDVALUE('Table'[Date])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this similar to the output you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 07:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2795372#M87816</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-09-26T07:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Running total line until last day from chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2805724#M88470</link>
      <description>&lt;P&gt;Hi, thank you for your answer. I tried your query, bud the result is different:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The data look like this example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:26:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2805724#M88470</guid>
      <dc:creator>LiborK</dc:creator>
      <dc:date>2022-09-29T09:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running total line until last day from chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2811652#M89019</link>
      <description>&lt;P&gt;Thank you, you were right.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 12:13:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-line-until-last-day-from-chart/m-p/2811652#M89019</guid>
      <dc:creator>LiborK</dc:creator>
      <dc:date>2022-10-02T12:13:17Z</dc:date>
    </item>
  </channel>
</rss>

