Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Rectangle Visiblity

Author  Topic 

satsap
Starting Member

9 Posts

Posted - 2008-11-13 : 11:12:16
When the worker selects the parameter and the workers workload has the stage then i need to show the rectangle, Otherwise the rectangle should be hidden.

I tried the following expression
IIF(Parameter!Edu_ind.value = "N", True, False) - This hides the rectangle only when the parameter is not selected. But i need to even hide it if the workers workload doesn't have the stage.

Can you send me a sample expression for the above condition.

Thanks in Advance

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-13 : 11:26:41
which field designates workers workload stage?
Go to Top of Page

satsap
Starting Member

9 Posts

Posted - 2008-11-13 : 11:50:12
Fields!stage_type tells us the stages for that worker
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-13 : 11:52:28
then i think it will something like

IIF(Parameter!Edu_ind.value = "N" Or Len(Fields!stage_type.value)=0, True, False)
Go to Top of Page

satsap
Starting Member

9 Posts

Posted - 2008-11-13 : 12:01:19
i have tried the expression you have provided, but it gives error saying dataset scope not specified.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-13 : 12:30:45
so are you telling that if atleast one row in dataset has stage_type value then you need to show rectangle and else hide it?
Go to Top of Page

satsap
Starting Member

9 Posts

Posted - 2008-11-13 : 13:36:55
yes i have to show it if stage_type has atleast one row
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-13 : 23:09:57
=IIF(Parameter!Edu_ind.value = "N" Or SUM(IIF(Len(Fields!stage_type.value)>0,1,0),"Yourdatasetname")=0, True, False)
Go to Top of Page
   

- Advertisement -