reporting services - SSRS Sorting and Renaming an Empty String -


i'm building bar chart has many values , 1 of values empty string. when added in ssrs, blank string returns '1' value (the first bar on chart). how change name '1' blank? also, how sort blank string within chart?

enter image description here

here's tried on changing name 'blank' , doesn't seem seems working:

=iif (isnothing(fields!age.value), "blank", iif(cstr(fields!age.value)= "", "blank", cstr(fields!age.value)  

here's tried sort , can't work..probably because empty string messing me up. i'm showing sample below otherwise code long.

=switch(fields!age.value="incorrect", 1, fields!age.value= "ao", 2,true,3) 

thanks in advance help!

@rajeshpanchal - pointing me in right direction. went , changed sql query include empty strings within case statement. case when fieldname = '10' , fieldname = '' 'blank profile'

once had empty string named other '1', able sort chart within ssrs creating new calculated field , using following switch function:

=switch(fields!age.value="incorrect", 1, fields!age.value= "ao", 2,true,3) 

i went chart data, right clicked on category group , choose category group properties..then clicked on sorting , input newly created sorting field. trying incorrect bar show first on chart , can see below worked.

enter image description here


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -