<?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 handle Blank value in a column count in Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Blank-value-in-a-column-count-in-Table/m-p/963318#M11366</link>
    <description>&lt;P&gt;Just adjust this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[ON/OFF Plan] =
var __var = 'Table'[Variance between Date]
var __ind = 'Table'[Indicator]
return
switch ( true(),

    __var = 0, "ON PLAN",
    __var &amp;gt; 0 &amp;amp;&amp;amp; __ind &amp;lt;&amp;gt; "Added Post", "LATE",
	__var &amp;lt; 0 &amp;amp;&amp;amp; __ind &amp;lt;&amp;gt; "Added Post ", "EARLY",
	
	"TBD"
)&lt;/LI-CODE&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
    <pubDate>Sat, 07 Mar 2020 23:06:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-07T23:06:07Z</dc:date>
    <item>
      <title>How to handle Blank value in a column count in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Blank-value-in-a-column-count-in-Table/m-p/959412#M11160</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get a count based on the Project package status and write&amp;nbsp; a logic to based on condition to set a package status with either On plan, Late, Early or for anything else TBD.&lt;/P&gt;&lt;P&gt;But when I put in my conditions it breaks into late, early, on plan , TBD and blank. I want to include the count of blanks in TBD only, so I have only 4 category for status.&lt;/P&gt;&lt;P&gt;My logic is as follows, where Variance is the difference of days between two dates. Can we do that any ways.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ON/OFF Plan = IF( ('Table'[Variance between&amp;nbsp; Date ] = 0 ) ,"ON PLAN",IF((' Table'[Variance between date] &amp;gt; 0 &amp;amp;&amp;amp; ' Table'[Indicator] &amp;lt;&amp;gt; "Added Post " ),"LATE",IF(('Table'[Variance &lt;SPAN&gt;between&amp;nbsp; Date&lt;/SPAN&gt;] &amp;lt; 0 &amp;amp;&amp;amp; ' Table'[Indicator] &amp;lt;&amp;gt; "Added Post " ),&amp;nbsp; "EARLY","TBD")))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Aagni&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Mar 2020 22:14:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Blank-value-in-a-column-count-in-Table/m-p/959412#M11160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-04T22:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle Blank value in a column count in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Blank-value-in-a-column-count-in-Table/m-p/959432#M11162</link>
      <description>&lt;P&gt;First advice, use SWITCH(TRUE()...), not nested IF. Will make the logic much clearer and cleaner. Second, sample data would help tremendously.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 22:44:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Blank-value-in-a-column-count-in-Table/m-p/959432#M11162</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-04T22:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle Blank value in a column count in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Blank-value-in-a-column-count-in-Table/m-p/963318#M11366</link>
      <description>&lt;P&gt;Just adjust this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[ON/OFF Plan] =
var __var = 'Table'[Variance between Date]
var __ind = 'Table'[Indicator]
return
switch ( true(),

    __var = 0, "ON PLAN",
    __var &amp;gt; 0 &amp;amp;&amp;amp; __ind &amp;lt;&amp;gt; "Added Post", "LATE",
	__var &amp;lt; 0 &amp;amp;&amp;amp; __ind &amp;lt;&amp;gt; "Added Post ", "EARLY",
	
	"TBD"
)&lt;/LI-CODE&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 23:06:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Blank-value-in-a-column-count-in-Table/m-p/963318#M11366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-07T23:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle Blank value in a column count in Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Blank-value-in-a-column-count-in-Table/m-p/967116#M11479</link>
      <description>&lt;P&gt;Thanks for your reply, the matter of the fact is that the Table 1 where I am creating this column for On /Off plan , I am using this on/off status to see the count of packages on another table which has the Master data of all packages i.e in table 2. While the Table 1 also has the Package number and the relationishp is maintained in Power BI, what I want to do is compare this On/off plan status for the packages on the Table 2. SInvce the number of packages on Table 2 is more than that of Table 1 hence I get all the status correctly , but for the ones missing in Table 1 I need to show it as TBD , but currently its shgowing blank, can I convert these blanks somehow to show as TBD so I can plot it out in the pie chart only as 4 statuses.&lt;/P&gt;&lt;P&gt;Table 1.&lt;/P&gt;&lt;P&gt;Package1 &amp;nbsp; -20 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Package2 &amp;nbsp;&amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Package3 &amp;nbsp;&amp;nbsp; 13 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Package4&amp;nbsp; 43267&amp;nbsp; (Anything starting before 2019 to be considered TBD)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2(Master Data of Packages)&lt;/P&gt;&lt;P&gt;Package1 &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Package2 &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Package3 &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Package4 &amp;nbsp;&lt;/P&gt;&lt;P&gt;Package5&lt;/P&gt;&lt;P&gt;Package6&lt;/P&gt;&lt;P&gt;The Relationship is on Package number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHat I want to show in the Power BI table is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Package1 = "Early&lt;/P&gt;&lt;P&gt;Package2 = On Plan&lt;/P&gt;&lt;P&gt;Package3 = Late&lt;/P&gt;&lt;P&gt;Package4 = TBD&lt;/P&gt;&lt;P&gt;Package5&amp;nbsp; = TBD (These Package do not exists on Table 1)&lt;/P&gt;&lt;P&gt;Package6 = TBD&lt;SPAN&gt; (These Package do not exists on Table 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help will be geratly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 15:32:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Blank-value-in-a-column-count-in-Table/m-p/967116#M11479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-10T15:32:06Z</dc:date>
    </item>
  </channel>
</rss>

