locked
Overall Project Status problem RRS feed

  • Question

  • In Overall Project Status webpart, there is:

                    <xsl:choose>
                      <xsl:when test="translate($dvt_ParentRow/@Budget_x0020_in_x0020_Days,'.','.') &gt; sum(msxsl:node-set($FilterPeerTasksMod)/Row/@Cost_x0020_in_x0020_Days)">
                        <img src="images1/KPI-0.gif" align="absmiddle"/>			
                      </xsl:when>
                      <xsl:when test="translate($dvt_ParentRow/@Budget_x0020_in_x0020_Days,'.','.') &lt; sum(msxsl:node-set($FilterPeerTasksMod)/Row/@Cost_x0020_in_x0020_Days)">
                        <img src="images1/KPI-2.gif" align="absmiddle"/>			
                      </xsl:when>
                      <xsl:otherwise>
                        <img src="images1/KPI-1.gif" align="absmiddle"/>			
                      </xsl:otherwise>
    

    No matter the value of Actual Days, the icon remain to green, KPI-0.gif.

    Can someone help with? Thanks


    OvidiuG

    Friday, June 22, 2012 8:42 AM

Answers

  • Hi OvidiuG,

    Where do you use this code, a list view web part?

    I would like suggest you to display these 2 formula in in web part directly and check whether you are getting correct value.

    translate($dvt_ParentRow/@Budget_x0020_in_x0020_Days,'.','.')

    sum(msxsl:node-set($FilterPeerTasksMod)/Row/@Cost_x0020_in_x0020_Days)

    And if it is list view web part, please make sure these 2 columns: @Budget_x0020_in_x0020_Days, @Cost_x0020_in_x0020_Days are displayed/visible in the web part.

    Or could you please elaborate a bit more about your list structure if this cannot help to solve your problem.

    Thanks & Regards,
    Emir


    Emir Liu

    TechNet Community Support

    • Marked as answer by Emir Liu Thursday, June 28, 2012 4:22 AM
    Monday, June 25, 2012 10:40 AM