on 12-04-2014 8:44 AM
Is any possible optional prompt on WEBI report level with requirement of current year and current month as default value when prompt occur? The optional prompt in WEBI seem like only available on fixed value. Also trying on universe side but getting error when changing getdate() to year(getdate()). Any idea?
A.BATCACTYR = (Case When @Prompt('Enter This Year','C','Year Others',mono,constrained,,{'999'})='999' Then getdate() else @Prompt('Enter This Year','C','Year Others',mono,constrained,,{'999'}) END).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Trying to try this on universe level with derived table as below:
where
(A.BATCTRCDE='T413' or (A.BATCTRCDE='T405' and E.REPTYPE in (select REPLCODE from CDE_T_T3586)))and A.SACSCODE in ('FG', 'CO')
and
(
A.BATCACTYR = @Prompt('Enter This Year','N','Year Others',Mono,Constrained,Persistent,,User:-1,Optional)
AND
(
A.BATCACTYR = year(getdate())-1
OR
A.BATCACTYR = @Prompt('Enter This Year','N','Year Others',Mono,Constrained,Persistent,,User:-1,Optional)
)
)
But I get error as attach above.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.