on 05-30-2011 7:09 AM
Hi all,
How do I use prompt for selecting field1 or field1+field2 depending on user's choice?
I think about :
select case when @prompt1 = 1 then field1 else field1+field2 end from table1
Choice field1+ field2 should be by default. Choises 1,2 should be named user-friendly like "choice A", "choice B".
But I do not know the syntax at all. Give me please some example or tell me where to read about it.
Thanks ahead.
hi,
Please create an object in Universe with the following definition.
Object1
@Prompt('Select Your Choice:','A',{'Choice A','Choice B'},mono,free,persistent,{'Choice B'})
Include the above object in your query. Run the report.
Create a Variable 'Var1' with the following definition.
=if UserResponse('Select Your Choice:') ="Choice A" then [field1] else [field1]+[field2]
Regards,
Vamsee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.