COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: Marvin Falentin on 18 Apr 2017 06:18:50 AM

Title: Displaying different images for different variables - solved
Post by: Marvin Falentin on 18 Apr 2017 06:18:50 AM
Hey everyone,

in our active report we want to be able to display one of two different images depending on current situation (green for status "ok" and red for "not ok", typical traffic light logic).

How can I best achieve this? Right now I'm experimenting with having the variables declared in my report and two images directly next to each other, each in a cell of a table but it looks weird in the actual report because the "not in use cell" will be blank space and there is always one either left or right depending on the status.

Thank you very much in advance for your help on this topic!

Kind regards,

Marvin

EDIT: using Cognos 11 active report
Title: Re: Displaying different images for different variables
Post by: MFGF on 18 Apr 2017 06:39:35 AM
Quote from: Marvin Falentin on 18 Apr 2017 06:18:50 AM
Hey everyone,

in our active report we want to be able to display one of two different images depending on current situation (green for status "ok" and red for "not ok", typical traffic light logic).

How can I best achieve this? Right now I'm experimenting with having the variables declared in my report and two images directly next to each other, each in a cell of a table but it looks weird in the actual report because the "not in use cell" will be blank space and there is always one either left or right depending on the status.

Thank you very much in advance for your help on this topic!

Kind regards,

Marvin

Hi,

You can use a conditional style for this. They are not just limited to colours - you can display images conditionally too. :)

Cheers!

MF.
Title: Re: Displaying different images for different variables -solved
Post by: Marvin Falentin on 19 Apr 2017 06:25:03 AM
Hey MFGF,

thank you very much for your quick response, conditional styles are working perfectly for me!

Kind regards,

Marvin