reporting services - Logical AND aggregation in SSRS, RDLC -


i created new rdlc report using report wizard, generated tablix me. tablix uses 1 of dataset properties group items rows. after each group there subtotal displayed each integer column following expression:

=sum(fields!sourcecount.value) 

i similar "subtotal" boolean columns - should return logical , set of values in given group

this expression works me:

=iif(sum(iif(not(fields!val.value), 1, 0)) mod 2 <> 0   , false   , true) 

this counts number of false values; if number and of set must true, else false.

i put following test.

dataset:

enter image description here

report in designer:

enter image description here

the logical and expression same 1 described above. end result:

enter image description here

edit after comment:

if you're looking existence of 1 or more false values in data scope, can change expression following:

=iif(sum(iif(not(fields!val.value), 1, 0)) > 0   , false   , true) 

so if there @ least 1 false value, return false aggregation.

updated report:

enter image description here

maybe you're after?


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -