Hi all,
I have a condition like
in ((select case when @Select(File review\FR Status)=‘Draft’ then @Select(File review\FR Draft Date Year)
when @Select(File review\FR Status)=‘Finalized’ then @Select(File review\FR Finalized Year)
end)=@Prompt(‘2-File Review Year’,‘File review\FR Create Year’,))
or
(‘ALL’ in @Prompt(‘2-File Review Year’,‘File review\FR Create Year’,))
i converted every thing to char but it is throwing like
Hi,
I see some problem in the code for @prompt, here you are not defining any data type for the prompt. it should be ‘A’, secnd thing when you try to get teh ‘ALL’ value then are your users going to enter ‘ALL’?
Is it a Universe based report?, did you parse the object? It should have given you the error.
Please post the actual SQL code (without the @Select() functions) in order to get some help. Is this a condition object made in Designer? If so, this topic should be moved to the Semantic Layer forum.
Usually the best way to approach a problem like this is to start simple (KISS methodology) and then slowly enhance your code. Don’t want too much all at once
(
(select case
when ( dbo.UQA_FL_REVW.STS )= 'Draft'
then cast((datepart(yy,dbo.UQA_FL_REVW.REVW_DRFT_DT) ) as char)
when ( dbo.UQA_FL_REVW.STS )= 'Finalized'
then cast(( datepart(yy,dbo.UQA_FL_REVW.FNL_DT) ) as char)
end)
= ( @Prompt('2-File Review Year','A','File review\FR Create Year',,))
or
('ALL' in ( @Prompt('2-File Review Year','A','File review\FR Create Year',,))