Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Check for null values in string, if no values, print blank

$
0
0

Hi 

I posted a question a few days back, after playing with functions I was able to resolve it, I just have one more problem, if the string comes empty, only blank spaces should be printed, following is my string and my fix: 

My string: 

SEV.ORI/999999.VIN/1D7Hx11111111111111.VYR/2005.VMA/DODG.VMO/THU.DOT/07072013.CRT/MI1111111.OCA/11111111890123000001.LIT/PC.LIC/BFK9331

=Left(Split(Fields!MESSAGE.Value,"/")(6),2) + "/" 
& Mid(Split(Fields!MESSAGE.Value, "/")(6) ,3 ,2) + "/" 
& Mid(Split(Fields!MESSAGE.Value, "/")(6), 5, 4)

With this I get: 07/07/2013

If DOT comes empty, i get .CRT/

So I need to validate for empty space on DOT and print blank spaces. I'm guessing it would be with an IIF or IsNothing function. Any help would be appreciated. 



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>