<?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: How do I make the number 0 show instead of blank values? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3611533#M139615</link>
    <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;you can accept multiple answer as a solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 17:27:24 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2024-01-02T17:27:24Z</dc:date>
    <item>
      <title>How do I make the number 0 show instead of blank values?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3607672#M139379</link>
      <description>&lt;P&gt;I have this graph. How do I get the number 0 to show instead of blank values?&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;</description>
      <pubDate>Fri, 29 Dec 2023 20:54:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3607672#M139379</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2023-12-29T20:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the number 0 show instead of blank values?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3607767#M139384</link>
      <description>&lt;P&gt;If you are using a measure, then you need to wrap your measure inside an if(isblank()&lt;/P&gt;&lt;P&gt;As the below&lt;/P&gt;&lt;P&gt;If(isblank(YourMeasureHere),0,YourMeasureHere)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i answered your question, please accept my reply as the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 23:32:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3607767#M139384</guid>
      <dc:creator>khaledHabib90</dc:creator>
      <dc:date>2023-12-29T23:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the number 0 show instead of blank values?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3607813#M139391</link>
      <description>&lt;P&gt;Okay I have a solution, this is actually more difficult and convoluted than it has any right to be. It makes sense if you understand how filter context works, but there really should be an easier solution than this.&lt;BR /&gt;&lt;BR /&gt;I used this video for reference, with a slight modification&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=mOgvAR-t90Y" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=mOgvAR-t90Y&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Assuming your data is in the following format:&lt;/P&gt;&lt;P&gt;Category Year&lt;BR /&gt;Events 2022&lt;BR /&gt;Events 2022&lt;BR /&gt;Events 2022&lt;BR /&gt;Events 2022&lt;BR /&gt;Events 2022&lt;BR /&gt;Events 2022&lt;BR /&gt;Events 2022&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, create two calculated tables with the following formulas&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Categories =&lt;/SPAN&gt; &lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;[Category]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Years =&lt;/SPAN&gt; &lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;[Year]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Second, create relationships as shown below&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&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;P&gt;Third, create this measure&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Data&lt;/SPAN&gt;&lt;SPAN&gt;[Category]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ) + &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Last step, and this is important, put Category from the Categories calculated table, and Year from the Years calculated table into rows and columns as shown below. Do not put them from the original source table, it will not work. Put Measure into values.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Congratulations, you now have 0's instead of blanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 30 Dec 2023 00:33:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3607813#M139391</guid>
      <dc:creator>jjrand</dc:creator>
      <dc:date>2023-12-30T00:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the number 0 show instead of blank values?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3608867#M139491</link>
      <description>&lt;P&gt;You just need to add a simple control over blanks values to your original measure, there's no need for anything more complex than that:&lt;/P&gt;&lt;PRE&gt;Measure_With_No_Blanks =&lt;BR /&gt;&lt;SPAN&gt;IF( ISBLANK(YourOriginalMeasure), 0, YourOriginalMeasure )&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This formula checks if the original measure returns blank. If it does, it substitutes it with 0; otherwise, it returns the original measure value. Make sure to replace &amp;lt;&lt;EM&gt;YourOriginalMeasure&lt;/EM&gt;&amp;gt; with the actual name of the measure.&lt;BR /&gt;&lt;BR /&gt;In case you are working directly with the field, then you need to actually create the measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Measure_With_No_Blanks =&lt;BR /&gt;&lt;SPAN&gt;IF( ISBLANK(YourField), 0, YourField )&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 15:19:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3608867#M139491</guid>
      <dc:creator>salvalcaraz</dc:creator>
      <dc:date>2023-12-31T15:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the number 0 show instead of blank values?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3608878#M139492</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does not always works, and&amp;nbsp;assuming the data is in a certain format, it would not work in this case (original question didn't provide the data). I have tried the simple approach and the result is shown below. There are still blank values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This occurs because the IF statement has nothing to evaluate against, since there simply are no Recruitment and Surveys entries for 2022.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is why we have to create the relationships as shown in my answer below, to force that evaluation.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 15:46:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3608878#M139492</guid>
      <dc:creator>jjrand</dc:creator>
      <dc:date>2023-12-31T15:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the number 0 show instead of blank values?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3609779#M139530</link>
      <description>&lt;P&gt;In my answer I made the assumption that you already had a calendar table, which is not a best practice, but a "must" while modeling. Your issue isn't in DAX, but in modeling your data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you have a simple model, just by defining a calendar table and building the relationship towards your fact table should be enought. You can create your calendar table with this DAX code:&lt;/P&gt;&lt;PRE&gt;Date&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&lt;BR /&gt;VAR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;MinYear&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;YEAR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;MIN&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Data[Year]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;)&lt;BR /&gt;VAR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;MaxYear&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;YEAR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;MAX&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Data[Year]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;)&lt;SPAN&gt;&amp;nbsp;&lt;/S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p;&lt;/SPAN&gt;YEAR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[Date]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Month Name",&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FORMAT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[Date],&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"mmmm"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Month Number",&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;MONTH&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[Date]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;)&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, don't forget to mark this table as your date table in the model view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 10:54:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3609779#M139530</guid>
      <dc:creator>salvalcaraz</dc:creator>
      <dc:date>2024-01-08T10:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the number 0 show instead of blank values?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3609791#M139531</link>
      <description>&lt;P class="lia-align-justify"&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;In your measure add zero after calculation&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Like&lt;/P&gt;&lt;P class="lia-align-justify"&gt;[Measure]+0&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 15:59:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3609791#M139531</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-01T15:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the number 0 show instead of blank values?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3611531#M139614</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="665940" data-lia-user-login="jjrand" class="lia-mention lia-mention-user"&gt;jjrand&lt;/a&gt;, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476824" data-lia-user-login="khaledHabib90" class="lia-mention lia-mention-user"&gt;khaledHabib90&lt;/a&gt;&amp;nbsp;IDK if it's becasue of the way my data is set up but,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;reply above solved my issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="665940" data-lia-user-login="jjrand" class="lia-mention lia-mention-user"&gt;jjrand&lt;/a&gt;&amp;nbsp;I followed your instructions to the "T" and that way worked too. Can I select multiple responses as "Accepted Solution"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 17:25:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3611531#M139614</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-01-02T17:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make the number 0 show instead of blank values?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3611533#M139615</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;you can accept multiple answer as a solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 17:27:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-make-the-number-0-show-instead-of-blank-values/m-p/3611533#M139615</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-02T17:27:24Z</dc:date>
    </item>
  </channel>
</rss>

