<?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: Blank matrix values change to zeros in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Blank-matrix-values-change-to-zeros/m-p/2774114#M86495</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="311724" data-lia-user-login="009co" class="lia-mention lia-mention-user"&gt;009co&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The Project column and the Department column both must be independent dimension&amp;nbsp;tables linked to the fact table through the respective columns. You can refer to my solution for this post just today&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/how-to-replace-blank-fields-to-zero-in-matrix-visual/m-p/2773407#M86436" target="_blank"&gt;Re: how to replace blank fields to zero in matrix ... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Moreover the measure can be written in more simple syntax as follows&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;% Available =
COALESCE (
    DIVIDE ( SUM ( 'Table'[Available] ), SUM ( 'Table'[Budget] ), 0 ),
    0
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 16:47:45 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-09-16T16:47:45Z</dc:date>
    <item>
      <title>Blank matrix values change to zeros</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Blank-matrix-values-change-to-zeros/m-p/2774086#M86491</link>
      <description>&lt;P&gt;Trying to get my matrix blank values changed to zeros.&amp;nbsp;&amp;nbsp;Matrix looks like below screenshot.&amp;nbsp;&l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gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is no result then it is blank, right?&amp;nbsp; What am I missing? It doesn't return zeros, just stays blank.&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;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 16:36:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Blank-matrix-values-change-to-zeros/m-p/2774086#M86491</guid>
      <dc:creator>009co</dc:creator>
      <dc:date>2022-09-16T16:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Blank matrix values change to zeros</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Blank-matrix-values-change-to-zeros/m-p/2774114#M86495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="311724" data-lia-user-login="009co" class="lia-mention lia-mention-user"&gt;009co&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The Project column and the Department column both must be independent dimension&amp;nbsp;tables linked to the fact table through the respective columns. You can refer to my solution for this post just today&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/how-to-replace-blank-fields-to-zero-in-matrix-visual/m-p/2773407#M86436" target="_blank"&gt;Re: how to replace blank fields to zero in matrix ... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Moreover the measure can be written in more simple syntax as follows&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;% Available =
COALESCE (
    DIVIDE ( SUM ( 'Table'[Available] ), SUM ( 'Table'[Budget] ), 0 ),
    0
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 16:47:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Blank-matrix-values-change-to-zeros/m-p/2774114#M86495</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-16T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Blank matrix values change to zeros</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Blank-matrix-values-change-to-zeros/m-p/2774130#M86497</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Project column and the Department&amp;nbsp;columns are in same query as the values. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So yes it is obvious then that the blank values are because there are no rows in the query with those values for those dimensions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can't DAX replace these blanks with zeros without have a model with dimensions tables?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 16:58:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Blank-matrix-values-change-to-zeros/m-p/2774130#M86497</guid>
      <dc:creator>009co</dc:creator>
      <dc:date>2022-09-16T16:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Blank matrix values change to zeros</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Blank-matrix-values-change-to-zeros/m-p/2774152#M86503</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="311724" data-lia-user-login="009co" class="lia-mention lia-mention-user"&gt;009co&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I don't think so&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 17:08:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Blank-matrix-values-change-to-zeros/m-p/2774152#M86503</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-16T17:08:17Z</dc:date>
    </item>
  </channel>
</rss>

