<?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: Replacing Blanks with 0 in Power BI Visuals: DAX Measures Not Working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4410419#M175151</link>
    <description>&lt;P&gt;omg this works! Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 06:48:22 GMT</pubDate>
    <dc:creator>Cabbage_Baby</dc:creator>
    <dc:date>2025-02-14T06:48:22Z</dc:date>
    <item>
      <title>Replacing Blanks with 0 in Power BI Visuals: DAX Measures Not Working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4409311#M175091</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I’ve been working with Power BI for several months now, but I’ve never faced an issue as frustrating as this one.&lt;/P&gt;&lt;P&gt;In my visuals, there are cells displaying blanks, and none of my DAX measures to replace those blanks with 0 seem to work. For example, I’ve tried using COALESCE(COUNTROWS(Sheet1), 0) + 0 and IF(ISBLANK(COUNTROWS(Sheet1)), 0, COUNTROWS(Sheet1)), but the blanks persist.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I’ve attached a sample file for reference and would really appreciate it if someone could guide me on resolving this issue. Thank you!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1PHmj3qBqhn_cKe0Nu4lPeRe1MkEm-N6R/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1PHmj3qBqhn_cKe0Nu4lPeRe1MkEm-N6R/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 14:42:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4409311#M175091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-13T14:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 in Power BI Visuals: DAX Measures Not Working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4409394#M175095</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;It's almost certainly an auto-exist issue. Go here and do this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you don't see this option, you may need to turn it on in Preview features (because everything is a preview feature now).&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 15:22:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4409394#M175095</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-02-13T15:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 in Power BI Visuals: DAX Measures Not Working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4409489#M175098</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- This is because everything is from the same table, and you're trying to add a 0 into a row that does not exist, so the visual cannot show the 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make this work you need to create a calculated table that stores your dates, a 0 can then be put against this because the date exists in a different table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my attached file you will see how I have acheived this. You will also notice that my visual on the left now uses the date from the new table and works, where as the table on the right uses the old date column and the measure does not work as desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="padding: 1em; border: 3px solid #287EC7;"&gt;If I answered your question &lt;STRONG&gt; please mark my post as the solution&lt;/STRONG&gt;, it helps others with the same challenge find the answer!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 16:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4409489#M175098</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2025-02-13T16:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 in Power BI Visuals: DAX Measures Not Working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4410419#M175151</link>
      <description>&lt;P&gt;omg this works! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 06:48:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4410419#M175151</guid>
      <dc:creator>Cabbage_Baby</dc:creator>
      <dc:date>2025-02-14T06:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 in Power BI Visuals: DAX Measures Not Working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4410421#M175152</link>
      <description>&lt;P&gt;Thank you, Greg! I really appreciate your help, but sadly, this didn’t quite solve the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 06:50:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-in-Power-BI-Visuals-DAX-Measures-Not/m-p/4410421#M175152</guid>
      <dc:creator>Cabbage_Baby</dc:creator>
      <dc:date>2025-02-14T06:50:31Z</dc:date>
    </item>
  </channel>
</rss>

