<?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 - Adding +0/ new measure not working! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751938#M2807</link>
    <description>&lt;P&gt;What is the measure you are currently using to fill this table?&amp;nbsp; What measures using the +0 trick have you tried?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 20:57:50 GMT</pubDate>
    <dc:creator>Cmcmahan</dc:creator>
    <dc:date>2019-07-29T20:57:50Z</dc:date>
    <item>
      <title>Replacing Blanks with 0 - Adding +0/ new measure not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751924#M2804</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to replace Blank values as 0 in my matrix visualisation. I have tried using +0 in a new measure and dax functions but no luck. Below is an example of my data and what i am trying to do. Please share your ideas!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Direction&lt;/TD&gt;&lt;TD&gt;Category&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;17-Jun&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;18-Jun&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;17-Jun&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;18-Jun&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;20-Jun&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;21-Jun&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;19-Jun&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am trying to add values as "0" when the count of category for a specific date is null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 20:48:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751924#M2804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-29T20:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 - Adding +0/ new measure not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751938#M2807</link>
      <description>&lt;P&gt;What is the measure you are currently using to fill this table?&amp;nbsp; What measures using the +0 trick have you tried?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 20:57:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751938#M2807</guid>
      <dc:creator>Cmcmahan</dc:creator>
      <dc:date>2019-07-29T20:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 - Adding +0/ new measure not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751939#M2808</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="130077" data-lia-user-login="Cmcmahan" class="lia-mention lia-mention-user"&gt;Cmcmahan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following dax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;count = count([category]) + 0&lt;/P&gt;&lt;P&gt;count = if(isblank(count([category)),0,count([category]))&lt;/P&gt;&lt;PRE&gt;Child Count = 
VAR rowcount =
    COUNTROWS ( Child )
RETURN
    IF ( rowcount = BLANK (), 0, rowcount )​&lt;/PRE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;count of category = IF(COUNTX(VCCdata,VCCdata[Category]) = 0, 0, COUNT(VCCdata[Category]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;ActualM =
IF (
    CALCULATE ( SUM ( Expenses[Actual] ) ) = BLANK (),
    0,
    CALCULATE ( SUM ( Expenses[Actual] ) )
)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jul 2019 20:59:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751939#M2808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-29T20:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 - Adding +0/ new measure not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751949#M2813</link>
      <description>&lt;P&gt;Using your first measure (&lt;SPAN&gt;count = count([category]) + 0)&lt;/SPAN&gt;, I was able to get this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share a screenshot of the fields you have in your Rows/Columns/Values buckets in the visualization pane?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 21:15:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751949#M2813</guid>
      <dc:creator>Cmcmahan</dc:creator>
      <dc:date>2019-07-29T21:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 - Adding +0/ new measure not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751952#M2814</link>
      <description>&lt;P&gt;Adding 0 to a number/measure (like COUNT) always forces the display of a number. ALWAYS. The fact that you can't see 0's in your matrix points in a different direction. I'd check the formatting of the values in the table. Maybe 0's are formatted as BLANKS by the matrix? Can you check some other visuals?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 21:18:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751952#M2814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-29T21:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 - Adding +0/ new measure not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751957#M2815</link>
      <description>&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also used the same measure in the above screenshot. I tried performing the same for various sets of data i have but still end up getting the same. If i am changing count = count([category])+0 to count=count([category])+1, only the fields in the table withvalues get updated and the blank values remain the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 21:23:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751957#M2815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-29T21:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Blanks with 0 - Adding +0/ new measure not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751963#M2816</link>
      <description>&lt;PRE&gt;[Category Count] = DISTINCTCOUNT( T[Category] ) + 0 &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Always use the name of the table in front of the column. ALWAYS. And never do that in front of measures. NEVER.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The behavior you're talking about is abnormal. Please restart Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 21:31:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replacing-Blanks-with-0-Adding-0-new-measure-not-working/m-p/751963#M2816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-29T21:31:02Z</dc:date>
    </item>
  </channel>
</rss>

