cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
brendaivett Regular Visitor
Regular Visitor

How to not count the null/empty value in visualizations

Hi,

 

I just noticed that in my visualizations, when I use the Count Distinct to display values, it's actually counting one more for the Null/Empty values. I tried making the values "" or Null, from the reporting side, and it doesn't matter, the "value" is still counted.

 

I know it's just one more value, but that makes it not 100% accurate to what my listing is backing up.

 

Is there a way to force the Count to not count the Null/Empty value in the visualizations?

 

Thanks in advance!

 

Brenda

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: How to not count the null/empty value in visualizations

@brendaivett

 

A fast way is add the column in visual level filter and unselected Blank.

 

NotBlank.png




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




4 REPLIES 4
Super User
Super User

Re: How to not count the null/empty value in visualizations

i think you need to use this function

 

COUNTAX Function (DAX) The COUNTAX function counts nonblank results when evaluating the result of an expression over a table. That is, it works just like the COUNTA function, but is used to iterate through the rows in a table and count rows where the specified expressions results in a nonblank result.

 

https://msdn.microsoft.com/en-us/library/ee634219.aspx?f=255&MSPPError=-2147217396


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
brendaivett Regular Visitor
Regular Visitor

Re: How to not count the null/empty value in visualizations

Hi,

 

I used DISTINCTCOUNT for a measure, but in this case it's for showing the count number of records in a chart or table, so that the user can see the total count and if they want to see the records that add to it, just use the "see records" option.

 

Count (Distinct) In Visualization.JPG

 

In the case I'm testing, I have 1608 different values among several records, and there are some Null values, and the count is showing 1609, so I'm assuming is counting the "distinct empty value".

 

Thanks!

 

Brenda

 

Super User
Super User

Re: How to not count the null/empty value in visualizations

@brendaivett

 

A fast way is add the column in visual level filter and unselected Blank.

 

NotBlank.png




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




sajidhussain Frequent Visitor
Frequent Visitor

Re: How to not count the null/empty value in visualizations

Hi Vvelarde

 

I am using calculated measure and this filtering is not working .

 

Could you please help ?

 

Sajid