reporting services - Multiple datasets Count with IIF in SSRS -


i trying write expression in ssrs counts specific data using iif. found following solution: =sum(iif(fields!program.value = "fc", fields!quantitytoship.value, 0))

the code above works when there 1 dataset, while have several. here code wrote:

=count(iif(fields!mgroup.value,"dataset1"=303,1,0)) 

i aggregation error:

textbox refers directly field ‘mgroup’ without specifying dataset aggregate

i added sum:

=count(iif(sum(fields!mgroup.value,"dataset1")=303,1,0)) 

still getting same error.

why that? can put instead of sum? need count how many groups named 303 have.

the expression used has sintax errors. count function aggregate scoped dataset.

try this:

=lookupset(303,fields!mgroup.value,fields!mgroup.value,"dataset1").length 

let me know if helps you.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -