<?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: Fix Line Graph for breaks in data, replace blank with 0, then leave blank for months after last sale in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fix-Line-Graph-for-breaks-in-data-replace-blank-with-0-then/m-p/2704518#M81977</link>
    <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 21:46:03 GMT</pubDate>
    <dc:creator>watje255_ju</dc:creator>
    <dc:date>2022-08-16T21:46:03Z</dc:date>
    <item>
      <title>Fix Line Graph for breaks in data, replace blank with 0, then leave blank for months after last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fix-Line-Graph-for-breaks-in-data-replace-blank-with-0-then/m-p/2701887#M81815</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used an IF funtion to replace the blank gross margin % (for months when there is no sales) for 0, so that my line graph doesnt break.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I then want the months in which there are no sales to return blank, rather than 0, can I please help with this? It seems that when using the IF function blank replacement, all subsequent months are 0, not blank, even when filtering for last sales.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So ideally, the measure, Stop GM% after last sale would be blank from Aug 22 onwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!As8wMr9_bgGrgWstsIAjHqF-oJOI?e=WG8HNb" target="_blank"&gt;https://1drv.ms/u/s!As8wMr9_bgGrgWstsIAjHqF-oJOI?e=WG8HNb&lt;/A&gt;&amp;nbsp;PBIX file link here&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 05:34:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fix-Line-Graph-for-breaks-in-data-replace-blank-with-0-then/m-p/2701887#M81815</guid>
      <dc:creator>watje255_ju</dc:creator>
      <dc:date>2022-08-16T05:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fix Line Graph for breaks in data, replace blank with 0, then leave blank for months after last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fix-Line-Graph-for-breaks-in-data-replace-blank-with-0-then/m-p/2702032#M81821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="354807" data-lia-user-login="watje255_ju" class="lia-mention lia-mention-user"&gt;watje255_ju&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I hope this is what your looking for&amp;nbsp;&lt;A href="https://www.dropbox.com/t/6CtxqpNbKlUr0hd7" target="_blank"&gt;https://www.dropbox.com/t/6CtxqpNbKlUr0hd7&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Stop GM % after last sale = 
Var LastSalesDate = CALCULATE ( MAX (Margin[Month] ), REMOVEFILTERS ( ) )
VAR Result = 
    IF ( MAX ( DimDate[DateKey]) &amp;lt;= LastSalesDate, [GM% with 0 replacing blank] ) 
RETURN
    Result&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Aug 2022 06:32:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fix-Line-Graph-for-breaks-in-data-replace-blank-with-0-then/m-p/2702032#M81821</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-16T06:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fix Line Graph for breaks in data, replace blank with 0, then leave blank for months after last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fix-Line-Graph-for-breaks-in-data-replace-blank-with-0-then/m-p/2704518#M81977</link>
      <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 21:46:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fix-Line-Graph-for-breaks-in-data-replace-blank-with-0-then/m-p/2704518#M81977</guid>
      <dc:creator>watje255_ju</dc:creator>
      <dc:date>2022-08-16T21:46:03Z</dc:date>
    </item>
  </channel>
</rss>

