Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


dynamic reports at the time of prview reports in ssrs


dynamic reports at the time of prview reports in ssrs

Author
Message
asranantha
asranantha
SSC Veteran
SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)

Group: General Forum Members
Points: 216 Visits: 4717
hi friends i have small doubt in ssrs plz tell me answer

i developed one report in ssrs. in that report i write the query in dataset like
select * from sample then
in design part i taken 2 desgin that are one is table and matrix .what ever i required field i select same field in table ,matrix .
and i create one parameter for idenfication of table ,matrix
in that parameter i choice the option avilable value in that chose avilable value add lable on table.....>value=1
lable on maric...> value=2
then in table design propety chose visibility show or hide base on expersionand
i write expersion like =iif(Parameters!abc.Value =1,"False","True")
and same expersion wirte matrixe
=iif(Parameters!abc.Value =2,"False","True")
finealy i preview the report but that time it show errore like
an error occurred during local report processing
the hidden expression used in tablix 'tablix3' returneda data type that is not valid.
that time also i change differnect datatype but same errore occured.
plz tell me why errore occured.
when evere we previwe report that time what ever we choise report that report only show remain reports hide.plz tell me how to solve this
Gazareth
Gazareth
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2865 Visits: 5345
Hi, remove the quotes from your expressions, so:

=iif(Parameters!abc.Value =1,False, True)

=iif(Parameters!abc.Value =2, False, True)

Does that work?

Thanks
asranantha
asranantha
SSC Veteran
SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)

Group: General Forum Members
Points: 216 Visits: 4717
k its working fine suppose in preview time i chose multiple reports like table and matrix that time what i do.
i do like parameter propertis in that general i chose mulitple value .but its now work.what is the prob that time plz tell me how to solve that one
errore occure like
an error occured during local report processing
the hidden expression for the tablix 'tablix1' contains an error:operator'=' is not defind for
type 'object()' and type 'integer'
plz tell me how to solve this issue
Gazareth
Gazareth
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2865 Visits: 5345
So parameter abc is a multi-valued parameter? Try these, which test the first selected value of abc:

=iif(Parameters!abc.Value(0) =1,False, True)

=iif(Parameters!abc.Value(0) =2, False, True)

I don't know if there's any guarantee on the order of the values when multiple values are selected though.
If you have more complicated logic on which report parts to show I'd imagine the multi-value things get difficult then.

It might be easier to produce a list and have single value parameters, e.g.:
Label Value
Table only 1
Chart Only 2
Matrix Only 3
Table + Chart 4
Matrix + Chart 5

and combine with nested iif statements like for Table:

=iif(Parameters!abcsingle.Value = 1, True, iif(Parameters!abcsingle.Value = 4, True, False))

Cheers
asranantha
asranantha
SSC Veteran
SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)

Group: General Forum Members
Points: 216 Visits: 4717
hi try that loagic l
in table i wirte expersion like
=iif(Parameters!abc.Value= 1, True, iif(Parameters!abc.Value=3, True, False))

and in matrix
=iif(Parameters!abc.Value= 2, True, iif(Parameters!abc.Value=3, True, False)

that time i chose table+matrix value that time it not show any data.
what is the problem there.plz tell me how i do that sistution
H4K
H4K
SSC-Enthusiastic
SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)

Group: General Forum Members
Points: 135 Visits: 567
Does you table or matrix show data (of course when not hidden) ?

And i think instead of the logic you applied, you can try this :

in table
=iif(Parameters!abc.Value= 1 or Parameters!abc.Value=3, True, False)

and in matrix
=iif(Parameters!abc.Value= 2 or Parameters!abc.Value=3, True, False)

i don't know if it's any better then your logic. but give it a try.

BI Developer
SSRS, SSIS, SSAS, IBM Cognos, IBM Infosphere Cubing services, Crystal reports, IBM DB2, SQL Server, T-SQL
Please visit... ApplyBI
asranantha
asranantha
SSC Veteran
SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)SSC Veteran (216 reputation)

Group: General Forum Members
Points: 216 Visits: 4717
this time also not show any data when ever i chose table +matrix
just change logic like
in table
=iif(Parameters!abc.Value= 1 or Parameters!abc.Value=3, false, true)

and in matrix
=iif(Parameters!abc.Value= 2 or Parameters!abc.Value=3, False,true)
it works whever we chose table+matrix
.that time table data and maatrex data also showing.

thanks for given logic
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search