<?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 to get Zero for Blank values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2724738#M83245</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this solution(with your formula) but still am getting zero. is there any other way to fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 03:56:10 GMT</pubDate>
    <dc:creator>Chandrashekar</dc:creator>
    <dc:date>2022-08-25T03:56:10Z</dc:date>
    <item>
      <title>How to get Zero for Blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2716919#M82729</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get zero for blank values as am getting for first row but not for 4th.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Dax:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Res/Res1 =&lt;/P&gt;&lt;P&gt;SUMX(&lt;BR /&gt;Summarize('TS','TS'[Priority],'TS'[AS]),&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS('TS'),USERELATIONSHIP('TS'[Date_Closed_SLA],'Calendar'[Date]),&lt;BR /&gt;FILTER (&lt;BR /&gt;VALUES('TS'), 'TS'[Parent]=Blank() &amp;amp;&amp;amp; 'TS'[In Task2] =1 &amp;amp;&amp;amp;&lt;BR /&gt;'TS' [Response/Restore]&amp;lt;&amp;gt;Blank() ),&lt;BR /&gt;'TS'[Priority]=earlier('TS'[Priority]),&lt;BR /&gt;'TS'[Actual stage]=EARLIER('TS'[AS]&lt;BR /&gt;)))+0&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;</description>
      <pubDate>Mon, 22 Aug 2022 12:08:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2716919#M82729</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-08-22T12:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Zero for Blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2717747#M82760</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt; , is Priority coming from a separate dimension table joine diwth main fact. If not try that out&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 15:27:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2717747#M82760</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-22T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Zero for Blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2718773#M82828</link>
      <description>&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please show how to do it as am bit new to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 03:41:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2718773#M82828</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-08-23T03:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Zero for Blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2719130#M82846</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I know for why zero getting 1-Critical but not getting for 4-low.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get zero for blank values as am getting for first row but not for 4th.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dax:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Res/Res1 =&lt;/P&gt;&lt;P&gt;SUMX(&lt;BR /&gt;Summarize('TS','TS'[Priority],'TS'[AS]),&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS('TS'),USERELATIONSHIP('TS'[Date_Closed_SLA],'Calendar'[Date]),&lt;BR /&gt;FILTER (&lt;BR /&gt;VALUES('TS'), 'TS'[Parent]=Blank() &amp;amp;&amp;amp; 'TS'[In Task2] =1 &amp;amp;&amp;amp;&lt;BR /&gt;'TS' [Response/Restore]&amp;lt;&amp;gt;Blank() ),&lt;BR /&gt;'TS'[Priority]=earlier('TS'[Priority]),&lt;BR /&gt;'TS'[Actual stage]=EARLIER('TS'[AS]&lt;BR /&gt;)))+0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 07:03:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2719130#M82846</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-08-23T07:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Zero for Blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2724624#M83235</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try to make some change to your formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Res/Res1 =
var count_=SUMX(
Summarize('TS','TS'[Priority],'TS'[AS]),
CALCULATE (
COUNTROWS('TS'),USERELATIONSHIP('TS'[Date_Closed_SLA],'Calendar'[Date]),
FILTER (
VALUES('TS'), 'TS'[Parent]=Blank() &amp;amp;&amp;amp; 'TS'[In Task2] =1 &amp;amp;&amp;amp;
'TS' [Response/Restore]&amp;lt;&amp;gt;Blank() ),
'TS'[Priority]=earlier('TS'[Priority]),
'TS'[Actual stage]=EARLIER('TS'[AS]
)))+0
return if(isblank(count_),0,count_)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 02:51:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2724624#M83235</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-08-25T02:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Zero for Blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2724738#M83245</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this solution(with your formula) but still am getting zero. is there any other way to fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 03:56:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2724738#M83245</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-08-25T03:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Zero for Blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2730718#M83616</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help to get zero for blank values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Sun, 28 Aug 2022 08:05:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2730718#M83616</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-08-28T08:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Zero for Blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2730898#M83637</link>
      <description>&lt;P&gt;This is because you are using a one-table model. Such models are inherently incorrect and should never be used unless you want to have issues you will never be able to explain (due to, for instance, the auto-exists feature).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use a correct model that's a star-schema and your worries will be gone. You definitely should read this article before you even start thinking about data modeling in PBI:&amp;nbsp;&lt;A href="https://www.bing.com/ck/a?!&amp;amp;&amp;amp;p=418a57365b499d2eJmltdHM9MTY2MTcwMjIwMSZpZ3VpZD1iMDRkZTIwNC0zZTU0LTRlNzYtOTlkOC1mOTk1MDk1NzUyMDUmaW5zaWQ9NTE5Mw&amp;amp;ptn=3&amp;amp;hsh=3&amp;amp;fclid=01b4815b-26ea-11ed-86c5-a475be6f4d3a&amp;amp;u=a1aHR0cHM6Ly9kb2NzLm1pY3Jvc29mdC5jb20vZW4tdXMvcG93ZXItYmkvZ3VpZGFuY2Uvc3Rhci1zY2hlbWE&amp;amp;ntb=1" target="_blank"&gt;Understand star schema and the importance for Power BI … (bing.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Aug 2022 15:57:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2730898#M83637</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-28T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Zero for Blank values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2731368#M83652</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for the instructions. I will check on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 03:41:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Zero-for-Blank-values/m-p/2731368#M83652</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-08-29T03:41:42Z</dc:date>
    </item>
  </channel>
</rss>

