<?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: Count of blanks showing up as 1 but want 0 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268972#M121085</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;tried checking it using Python (pandas) and it is a null value there. Is there a way to check to check on Power BI as well?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jun 2023 16:22:00 GMT</pubDate>
    <dc:creator>lopa30</dc:creator>
    <dc:date>2023-06-05T16:22:00Z</dc:date>
    <item>
      <title>Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268453#M121064</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Power BI and was having some trouble using measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with multiple columns including:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Sl.No&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;New Item ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;March 2023&lt;/TD&gt;&lt;TD&gt;A123&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;March 2023&lt;/TD&gt;&lt;TD&gt;A124&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;April 2023&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;May 2023&lt;/TD&gt;&lt;TD&gt;A226&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a line graph with the number of new items per month but when I use the count of new items, it shows that there is an item for April 2023 even though there shouldn't be (1 instead of 0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried creating a measure:&lt;/P&gt;&lt;P&gt;IF(ISBLANK(Table1['New Item ID']), 0, DISTINCTCOUNT(Table1['New Item ID']))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I was getting an error: A single value for column 'New Item ID' in table 'Table 1' cannot be determined. This can happen when a measure formula refers to a column that only contains many values without specificying an aggregration such as min, max, count or sum to get a single result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried the measure: DISTINCTCOUNT(Table1['New Item ID']) + 0 and that shows 1 for blank values (like April 2023) as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 12:38:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268453#M121064</guid>
      <dc:creator>lopa30</dc:creator>
      <dc:date>2023-06-05T12:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268523#M121068</link>
      <description>&lt;P&gt;You can use&amp;nbsp;&lt;SPAN&gt;DISTINCTCOUNTNOBLANK(Table1['New Item ID']) + 0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 13:10:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268523#M121068</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-05T13:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268640#M121073</link>
      <description>&lt;P&gt;Thank you. I tried that as well and it is still showing as 1.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 13:50:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268640#M121073</guid>
      <dc:creator>lopa30</dc:creator>
      <dc:date>2023-06-05T13:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268659#M121074</link>
      <description>&lt;P&gt;Are you sure that the value is actually blank, and doesn't have a space character or something in it?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 13:58:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268659#M121074</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-05T13:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268972#M121085</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;tried checking it using Python (pandas) and it is a null value there. Is there a way to check to check on Power BI as well?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 16:22:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3268972#M121085</guid>
      <dc:creator>lopa30</dc:creator>
      <dc:date>2023-06-05T16:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3269943#M121143</link>
      <description>&lt;P&gt;If you go into data view you can click the down arrow in the column header, that will allow you to filter by value, including blank.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 08:09:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3269943#M121143</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-06T08:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270863#M121224</link>
      <description>&lt;P&gt;Thank you! It seems like it is not blank. Is there a way of checking what exactly is included in the "blanks" as in how many empty spaces? The excel file has blank values so I'm not sure how it changed in power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, all of the IDs start with A so I thought I could use the measure:&lt;/P&gt;&lt;P&gt;if((containsstring(selectedvalue(table1[&lt;SPAN&gt;'New Item ID']), "A")),&amp;nbsp;DISTINCTCOUNT(Table1['New Item ID']), 0) but now I'm getting everything as 0. What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:32:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270863#M121224</guid>
      <dc:creator>lopa30</dc:creator>
      <dc:date>2023-06-06T15:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270880#M121225</link>
      <description>&lt;P&gt;You could add a couple of new calculated columns to your table,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Item length = LEN( 'table1'[New Item ID])

New string = "'" &amp;amp; 'table1'[New Item ID] &amp;amp; "'"&lt;/LI-CODE&gt;
&lt;P&gt;that will show you the length of the string and will wrap the string in single quotes so it is easier to see what the value is.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:39:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270880#M121225</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-06T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270922#M121230</link>
      <description>&lt;P&gt;I tried this as well and it says that the length of the "blanks" are 0.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 16:02:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270922#M121230</guid>
      <dc:creator>lopa30</dc:creator>
      <dc:date>2023-06-06T16:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270931#M121231</link>
      <description>&lt;P&gt;But unlike other columns which clearly say (Blank) when filtering this just is white.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 16:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270931#M121231</guid>
      <dc:creator>lopa30</dc:creator>
      <dc:date>2023-06-06T16:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270938#M121232</link>
      <description>&lt;P&gt;It might be worth looking in Power Query, see if you can replace the empty string with null. In the Replace Values dialog, leave the Value to Find field empty and type null into the Replace With.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 16:09:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3270938#M121232</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-06T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count of blanks showing up as 1 but want 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3271237#M121259</link>
      <description>&lt;P&gt;Thank you so much for all the help! I'm not sure if it's the cleanest solution but it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up creating a calculated column using:&lt;/P&gt;&lt;P&gt;New Item ID Clean = IF(CONTAINSSTRING(Table1[New Item ID], "A*")), Table1[New Item ID], BLANK()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then used the measure&amp;nbsp;&lt;SPAN&gt;DISTINCTCOUNTNOBLANK(Table1['New Item ID Clean']) + 0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 20:11:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-blanks-showing-up-as-1-but-want-0/m-p/3271237#M121259</guid>
      <dc:creator>lopa30</dc:creator>
      <dc:date>2023-06-06T20:11:10Z</dc:date>
    </item>
  </channel>
</rss>

