suppose there are 15 countries like (US, UK,
ENGLAND,INDIA,JAPAN.......)i want a value prompt in the
report and this value prompt should contain groups like
group1(US,UK,ENG), group2(INDIA,US,UK), group3
(ENG,JAPAN,INDIA)and in the value prompt the values should
be group1,group2,group3 how can we do this?

Answers were Sorted based on User's Feedback



suppose there are 15 countries like (US, UK, ENGLAND,INDIA,JAPAN.......)i want a value prompt in t..

Answer / abhay puranik

Create a query,drag the Country column,Drag data item from
the tool,name this as Group,Now in the expression
corresponding to this data item,write if(geography contains
('','','') then 'Group1' elseif(Country contains('','',''))
then 'Group2'......And use this query for the query
property of value prompt and use Group as column diplayed
under value prompt.Now,in filter for the main page use if
(Group='Group1') then (Country in ('','','')) else
if.....save report and run.

Is This Answer Correct ?    4 Yes 2 No

suppose there are 15 countries like (US, UK, ENGLAND,INDIA,JAPAN.......)i want a value prompt in t..

Answer / poorna chandra reddy

Create a data item and in that writ condition like below

if(country in (' US,UK,ENG' , ' INDIA,US,UK'))
then ('Group1')
else if (country in (‘INDIA’,’US’,’UK’)
then ('Group2')
else ('Group3')

Then create value prompt and assign this data item to the
value prompt.

Is This Answer Correct ?    3 Yes 1 No

suppose there are 15 countries like (US, UK, ENGLAND,INDIA,JAPAN.......)i want a value prompt in t..

Answer / balanandam

Abhay ur concept is write, but there is other way to implement this ....

using static choice property in the properties pan u can put the values like Group1, Group2....
and modify the default sql as

if query.country in (?parameter?='Group1')then (Country in ('','','')) else
else if.....then...
else if....then...
else query.country='parameter';

i think this will clear more
save report and run.

Is This Answer Correct ?    1 Yes 2 No

suppose there are 15 countries like (US, UK, ENGLAND,INDIA,JAPAN.......)i want a value prompt in t..

Answer / dhanu

create country prompt with 2 dynamic prompt value dispay
value WESTERN_COUNTRIES>use vale (1)ASIAN_COUNTRIES (2)

u can add more static values if u want.

in report query put filter

write a if statement or case
if (?country?)=1
then country in (USA,UK)
else country in (INDIA, CHINA)


case when ?country? =1
then query.country in (us,uk)
when ?country?=2
then query.country in(INDIA,srilanka)
end

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Cognos Interview Questions

How to create a dynamic header in a crosstab report using cognos 8.1 report studio?please suggest me.

1 Answers  


Once reports are delivered to client, how will they inform back? If they are experiencing any problem in the reports.

2 Answers  


What is drill down and slicing and dicing whats the difference between them?

0 Answers  


What is model?

0 Answers  


My problem is as follows I made two pages of the portal; in the first page i have two reports and from one of these i would like to communicate in some way (i.e drill- through?) with the second page that contains four reports (prompt value [product] and three chart [sales revenue, sales quantity and budget]). Particularly I would like to communicate with the report that contains the prompt, passing the Product. How can i drill from the first page of the portal to the second page ? More generally, is it possible to move from one page, containing 2 report, to another page with 4 report, through a drill-through or any other mechanism? Thank in advance.

1 Answers  






what do u mean by bridge group? where we r using this one?

0 Answers  


faq's on cognos

0 Answers  


16. How can we create top 10 and bottom 10 records in the same list?

9 Answers   TCS,


Explain the difference between native sql and cognos sql?

0 Answers  


What is Online View?

0 Answers   IBM,


What are the advantages and disadvantages of using Transformer cube?

1 Answers   TCS,


How can create users and permissions in cognos?

0 Answers  


Categories