<?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: Flatlined values in a MTD table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2827306#M89923</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the tip. I tried it but still didn't get the flatline discontinued. I might be doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Could you explain in few words, for me and perhaps for others gain, what the measure does?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Oct 2022 14:04:47 GMT</pubDate>
    <dc:creator>MacJasem</dc:creator>
    <dc:date>2022-10-08T14:04:47Z</dc:date>
    <item>
      <title>Flatlined values in a MTD table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2826077#M89856</link>
      <description>&lt;P&gt;Hi Guys&lt;BR /&gt;&lt;BR /&gt;Whats the esiest reusable method to discontinue flatlined values in YTD/MTD/WTD tables/graphs/BarCharts, such as this example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Data stops at 2. of February and thereby the chart flatlines. I wish to see only the current data as new data gets loaded to the dataset.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;DAX for the MTD measure is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TotalSalesValueMTD = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([SalesValue], &lt;/SPAN&gt;&lt;SPAN&gt;DATESMTD&lt;/SPAN&gt;&lt;SPAN&gt;('Date'[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you guys do it?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 14:40:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2826077#M89856</guid>
      <dc:creator>MacJasem</dc:creator>
      <dc:date>2022-10-07T14:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Flatlined values in a MTD table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2826303#M89865</link>
      <description>&lt;P&gt;You could create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date is visible =
VAR LastSaleDate =
    CALCULATE ( MAX ( 'Sales'[Date] ), ALL ( 'Sales' ) )
VAR CurrentDate =
    MAX ( 'Date'[Date] )
RETURN
    IF ( CurrentDate &amp;lt;= LastSaleDate, 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;and add that as a filter to the visual, to only show when the value is 1.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 15:54:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2826303#M89865</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-07T15:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Flatlined values in a MTD table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2827306#M89923</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the tip. I tried it but still didn't get the flatline discontinued. I might be doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Could you explain in few words, for me and perhaps for others gain, what the measure does?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 14:04:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2827306#M89923</guid>
      <dc:creator>MacJasem</dc:creator>
      <dc:date>2022-10-08T14:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Flatlined values in a MTD table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2827310#M89924</link>
      <description>&lt;P&gt;I figured it out by entering a filter in the dax measure ny using the ALLSELECTED function like this;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TotalSalesValueMTD =&lt;BR /&gt;CALCULATE ([SalesValue],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATESMTD ( 'Date'[Date] ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] &amp;lt;= MAX ( FactSales[OrderDate] )))&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 14:15:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2827310#M89924</guid>
      <dc:creator>MacJasem</dc:creator>
      <dc:date>2022-10-08T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Flatlined values in a MTD table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2830434#M90150</link>
      <description>&lt;P&gt;The principle is that the Date table will always have dates into the future, whereas the sales table would only have dates for which there are sales. You want the chart to stop at the last date on which there are sales, so you only want to show data when the maximum date visible in the current filter context, as generated by the visual, is on or before the last ever sales date. That is what you did in your FILTER.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 09:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2830434#M90150</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-10T09:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Flatlined values in a MTD table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2836170#M90505</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437928" data-lia-user-login="MacJasem" class="lia-mention lia-mention-user"&gt;MacJasem&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;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = IF([TotalSalesValueMTD]=0,0,1)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result 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>Wed, 12 Oct 2022 08:27:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2836170#M90505</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-10-12T08:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Flatlined values in a MTD table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2836938#M90534</link>
      <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332147" data-lia-user-login="v-zhangti" class="lia-mention lia-mention-user"&gt;v-zhangti&lt;/a&gt; &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 12:57:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flatlined-values-in-a-MTD-table/m-p/2836938#M90534</guid>
      <dc:creator>MacJasem</dc:creator>
      <dc:date>2022-10-12T12:57:36Z</dc:date>
    </item>
  </channel>
</rss>

