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.