Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Conditional formatting in rtf template on a calculated column

My code is
<?if:xdoxslt:sdiv(sum(TODATE),sum(CAC), '0') >100?><xsl:attribute xdofo:ctx="block" name="color">red</xsl:attribute><?end if?>
Logic:
if (sum(todate)/sum(cac)) > 100 then i have to display results in red color.
This code works fine with out a calculation like below but not with a calculation.
<?if:PCNT_TASK>100?><xsl:attribute xdofo:ctx="block" name="color">red</xsl:attribute><?end if?>
Also tried with <?if:sum(TODATE) div sum(CAC) >100?><xsl:attribute xdofo:ctx="block" name="color">red</xsl:attribute><?end if?>
Calculated values are correct but color coding is not working as expected. Also i can not push this calc to SQL as it is being displayed at grand totals in the template.
Answers
-
Hello ,
Kindly please find more details regarding the conditional formatting
format;
<?if@row:position() mod 2=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">lightgray</xsl:attribute><?end if?>
For each alternate row, the background color attribute is set to gray for the row.
Thank you
Best Regards
Gabriel0