Hi all. Iβm very much a newbie to Cognos and I hope someone can help. I have a report which returns values of β0β or β1β. I would like to display βNoβ for β0β and βYesβ for β1β. Any help will be gratefully received.
Thanks in advance
Terry
Iβm not sure how much of a Newbie you are, so I did assume you can get around in the screens.
I find the worst thing about the βIFβ statements in the later versions of Cognos is how picky it is about ().
- Click on the Query
- Click on Red Tool box, Double click on Data Item
Insert:
If ([WorkDay] = β1β)
Then (βYesβ)
Else (βNoβ) - Give the new field a name in the Properties
- Add the new field to the report
Date Day Name WorkDay YesNo
4/8/2012 Sunday 2 No
4/9/2012 Monday 1 Yes
4/10/2012 Tuesday 1 Yes
4/11/2012 Wednesday 1 Yes
4/12/2012 Thursday 1 Yes
4/13/2012 Friday 1 Yes
4/14/2012 Saturday 2 No
p.s.
You might want to cut the other field out of the report.
It can also be done with Conditional Blocks. It is more sophisticated and would take more to explain it. Maybe you can
search that option later.