<?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 Fill in missing values in a line graph with 0, while respecting the slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-in-missing-values-in-a-line-graph-with-0-while-respecting/m-p/2193331#M51321</link>
    <description>&lt;P&gt;I have looked at &lt;A href="https://community.powerbi.com/t5/Desktop/Plot-zero-when-there-is-no-data-in-line-chart/td-p/506235" target="_self"&gt;other solutions&lt;/A&gt; on this forum, but have not found anything that solves my issue. I have some data that has dates with no entry. When I graph it on a line graph, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to get those disconnected points to be connected, with the missing data being graphed as 0. But if I use the following measure, then my graph looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;expenses_speed_ = if(isblank([expenses_speed (ATS)]), 0, [expenses_speed (ATS)])&lt;/SPAN&gt;&lt;/FONT&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;I have the (i think) proper relationships setup between my date table and the table with this data. How do I get my points to be connected while not having my graphs going back to January 1900?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 22:39:29 GMT</pubDate>
    <dc:creator>maiios</dc:creator>
    <dc:date>2021-11-16T22:39:29Z</dc:date>
    <item>
      <title>Fill in missing values in a line graph with 0, while respecting the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-in-missing-values-in-a-line-graph-with-0-while-respecting/m-p/2193331#M51321</link>
      <description>&lt;P&gt;I have looked at &lt;A href="https://community.powerbi.com/t5/Desktop/Plot-zero-when-there-is-no-data-in-line-chart/td-p/506235" target="_self"&gt;other solutions&lt;/A&gt; on this forum, but have not found anything that solves my issue. I have some data that has dates with no entry. When I graph it on a line graph, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to get those disconnected points to be connected, with the missing data being graphed as 0. But if I use the following measure, then my graph looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;expenses_speed_ = if(isblank([expenses_speed (ATS)]), 0, [expenses_speed (ATS)])&lt;/SPAN&gt;&lt;/FONT&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;I have the (i think) proper relationships setup between my date table and the table with this data. How do I get my points to be connected while not having my graphs going back to January 1900?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 22:39:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-in-missing-values-in-a-line-graph-with-0-while-respecting/m-p/2193331#M51321</guid>
      <dc:creator>maiios</dc:creator>
      <dc:date>2021-11-16T22:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in missing values in a line graph with 0, while respecting the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-in-missing-values-in-a-line-graph-with-0-while-respecting/m-p/2194099#M51360</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="242993" data-lia-user-login="maiios" class="lia-mention lia-mention-user"&gt;maiios&lt;/a&gt; , because handle null will bring in all duration, I usually handle if again ''example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0 between range &lt;BR /&gt;Measure = var _1= SUM(Opportunity[Opportunity count]) +0 &lt;BR /&gt;var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date]) &lt;BR /&gt;var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date]) &lt;BR /&gt;return&lt;BR /&gt;CALCULATE(if(max('Calendar'[Date]) &amp;lt;_min || max('Calendar'[Date]) &amp;gt;_max , BLANK(), _1))&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 10:00:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-in-missing-values-in-a-line-graph-with-0-while-respecting/m-p/2194099#M51360</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-11-17T10:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in missing values in a line graph with 0, while respecting the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-in-missing-values-in-a-line-graph-with-0-while-respecting/m-p/2194653#M51379</link>
      <description>&lt;P&gt;Thank you very much. I have been messing with this for so long... thanks for showing me how to use the min/max to solve this!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 15:00:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fill-in-missing-values-in-a-line-graph-with-0-while-respecting/m-p/2194653#M51379</guid>
      <dc:creator>maiios</dc:creator>
      <dc:date>2021-11-17T15:00:31Z</dc:date>
    </item>
  </channel>
</rss>

