reporting services - Conditional formatting on multi page SQL Server Report (SSRS) -
i have report uses conditional formatting change font color , background color of text box containing expression using switch statement.
the text box shows value =reportitems!despatchmethod.value , have applied conditional formatting both background colour (fill) , font colour doing following:
for background colour:
=switch(fields!blackdespmethod.value = "true", "black", fields!blackdespmethod.value = "false", "white") for font colour:
=switch(fields!blackdespmethod.value = "true", "white", fields!blackdespmethod.value = "false", "black") the switch statement looking @ field in dataset called blackdespmethod either true or false. used determine formatting applied text box
this works fine if report single page - if value of blackdespmethod true colors change should. however, if report runs multiple pages (i.e. more 1 record in dataset) not work correctly.
for example, if report returns 40 records , first value returned blackdespmethod false, formatting not apply third record value returned true - applies false formatting pages. likewise if first value true applies formatting pages
i've tried using iif statements , worked in same way. i've considered using visibility show/hide different versions of text box based on value being true or false, due number of variations (and potential future changes) of values within despatchmethod.value rather avoid that.
the value of expression within cell correct every record (i have triple checked data in sql against report shows), formatting not being applied correctly.
any appreciated! couldn't find else having same problem me. bug in ssrs? unfortunately not experienced ssrs or instruction on how fix appreciated (in other words please excuse lack of understanding if make complex suggestion or answer).
Comments
Post a Comment