COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: diasbrad on 06 Oct 2014 06:36:24 PM

Title: Difference Between Conditional Style Vs Style Variable
Post by: diasbrad on 06 Oct 2014 06:36:24 PM
Hi BI Gurus,

Can anyone explain to me what is the difference between Conditional Style Vs Style Variable. In what situation will we use Conditional Style and in what situation we will use Style Variable.

Your help is highly appreciated.

Regards
Brad

Title: Re: Difference Between Conditional Style Vs Style Variable
Post by: Francis aka khayman on 06 Oct 2014 10:39:32 PM
Conditional Style - dependent on a variable that evaluates the value of a data item. usually used to format how data looks depending on its value. For example, if sales value < 50, then poor so display the amount with red foreground, if sales value > 100 very good so display the amount in greed.

Style Variable - dependent on a variable that evaluates other factors like prompt variable,value. for example does the user want to display the report with graph or not? then use the style variable to hide or show the graph depending on user input.

I am not sure if they can used interchangeably, at quick look seems you can for some functionality.  IMHO they are easier to use for the purpose I stated above, but that is just my preference
Title: Re: Difference Between Conditional Style Vs Style Variable
Post by: diasbrad on 07 Oct 2014 12:11:47 AM
Thanks Khayman,

Your information is very helpful.

Regards
Brad