how can you create a report like if country=india then true
if contry=spain then false?

Answers were Sorted based on User's Feedback



how can you create a report like if country=india then true if contry=spain then false?..

Answer / arkchowdary

Actually your question is not clear.

2 ways we can do which you asked why bcz --------- If u
want to do on same Column then u can use Conditional
formatting

Another One------------ If you want to do display result on
new column take new Query Calculation.

-------------- With the help of New query calculation we
can do this Report.

Ex------------ In Query Defnition you need to give
condition like this-------------- If Country='INDIA'
then 'TRUE
else If country='SPAIN' then "FALSE'


Another One is --------------- Through Conditional
Formatting we will do this Report.

Ex---------------- Use Boolean Variable we will do

If Condition is True then select Yes.

If condiotion is False then select No.

I Hope Clear.

Is This Answer Correct ?    2 Yes 0 No

how can you create a report like if country=india then true if contry=spain then false?..

Answer / thanjairajan@gmail.com

1.Go to Report Studio
2.Select list container
3.Drag query item to the list container. i.e for example we take country,staff name,revenue query item from source tab
4.Drag query calculation from tool box tab to right side of the container.
5.In the box give new query item name. in this example Result is new query item name.
5.Expression definition window will show. in that we type like this.

case
when [country]='India'
then 'True'
when [country]='Spain'
then 'False'
end

6.Then run the report. u will see new column is result. in that true value will display equivalent of India country and false value will display equivalent of Spain country.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Cognos Interview Questions

how to convert crosstab into list?

4 Answers   TCS,


There are some reports,we have to provide security to that reports like the hr manager should have access to hr department reports only and the accountant should have access to accounts reports where as the CEO can have access to all the reports. How to deal with this situation using Cognos?

2 Answers   BitWise,


What are the types of studio present in Cognos?

0 Answers  


--------------Diff b/w ODS and OLAP?

0 Answers   Bank Of America,


Hi, I'm planning to write COG-132 exam so looking out for dumps. If anybody is having then please e-mail me at afrinshaikh86@gmail.com. your help would be appreciated. -Regards Afrin

0 Answers  






Explain the difference between powerplay transformer and power play reports?

0 Answers  


Create 12 columns for months by writing single case statement?

1 Answers   Wipro,


Can you define drill across?

0 Answers  


Did you find any differences in bursting feature between reportnet 1.1 & cognos 8? what are the differences?

0 Answers  


How do we create Links & Segments in Cognos Framework Manager?

1 Answers  


How applying "Level Span" in Cognos 8.3?

1 Answers  


What are the components of report net?

0 Answers  


Categories