Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 bhavvibudagam
		
			bhavvibudagam
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Experts,
I am trying to calculate the Null values present in Value field. Here the nullcount under Value is 17.
Please provide the solution to calculate the Nullcount under value field apart from below two methods.
=Count( IF(ISNULL(Value) OR LEN(trim(Value))=0 OR Value=0,1))
=NullCount(Value)
| ID | Value | 
| 1 | -1301 | 
| 2 | |
| 3 | |
| 4 | 7 | 
| 5 | |
| 6 | 63 | 
| 7 | |
| 8 | 77 | 
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | 71 | 
| 17 | |
| 18 | |
| 19 | |
| 20 | 32 | 
| 21 | |
| 22 | 45 | 
| 23 | |
| 24 | 38 | 
| 25 | |
| 26 | 41 | 
Thanks in advance
 
					
				
		
 vishsaggi
		
			vishsaggi
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		May use a NullAsValue and count on that Field. Like
NULLASVALUE Value;
SET NullValue = '<NoData>';
YourLoadStatement. Like
LOAD ID, Value
FROM yoursource;
Then use like
= Count({< Value = {'<NoData>'} >} ID )
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		May be this
Sum(-Len(Trim(Value)) = 0)
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		My bad, this is the right syntax
=-Sum(Len(Trim(Value)) = 0)
Or this?
=Count({<Value -= {"=Len(Value)>0"}>} Value)
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		If Value is truly null, then this won't work.... but this can
=Count({<ID = {"=Len(Value) = 0"}>} Value)
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Not working? Which one is not working?
 bhavvibudagam
		
			bhavvibudagam
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		=Count({<ID = {"=Len(Value) = 0"}>} Value)
This expression is not working getting 0 instead of 17
 sunny_talwar
		
			sunny_talwar
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		My bad, needed to count ID instead of value
=Count({<ID = {"=Len(Value) = 0"}>} ID)
 
					
				
		
Hi,
Try
=Count(if(IsNull(Value)or Value='',1))
Regards.
 trdandamudi
		
			trdandamudi
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		One more way:
If you are sure the Value field is always a number then the following will work:
=Count(If(Not IsNum(Value),1))
