Conditional formatting in rtf template on a calculated column — Oracle Analytics

Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Conditional formatting in rtf template on a calculated column

Received Response
212
Views
1
Comments
Helan Kumar
Helan Kumar Rank 4 - Community Specialist

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