If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Prompt on rank

Started by net1212, 20 Jan 2009 04:27:33 PM

Previous topic - Next topic

net1212

Im having a rank column,i want to filter the report using rank prompt.

eg:
prompt will be a static choice
1 to 5
6 to 10
11 to 15

depending on user selection the report should be filter.

it should show only the range selected.

Thanks in advance.

Gopinath


create a query(Query1) with all required fields including Rank field.
create a another query(Query2) and drag Query1 into Query2 as shortcut.
now create a filter in Query2 using the Rank field of Query1


net1212

Thanks a lot for repaly

can you please explain in detail.

do i need to write(somthing like below logic) in filter

if (ParamDisplayValue('para') = 1)
then([Query1].[Rank]>=1 and [Query1].[Rank]<=5)
else([Query1].[Rank]>=6 and [Query1].[Rank]<=10)

my static choice prompt is

Use value         Display value       
1                      1 to 5
2                       6 to 10
3                      11 to 15   


Thanks.

net1212

This is solved.

we can do in easy way by having case statement in filter.

Thanks  for replay.

net1212

her is the logic for the filter

create a query and a static choice, give name as para

case
when ?para? = 1
then ([Rank] in_range {1:2})
when ?para? = 2
then ([Rank] in_range {3:4})
when ?para? = 3
then ([Rank] in_range {5:6})
end

Thanks.
for feature users