Skip to main content

I have a DVWPData View Web Part with a grouping. Now I have a column that contains either 'Yes' or 'No'. I am able to count the number of 'Yes' and "No' under certain grouping, however, I would like to know if there is anyway to count only 'Yes'?

Here is what the current xslt looks like: <xsl:value-of select="count($nodeset/@Status)" />

<xsl:value-of select="count($nodeset/@Status)" /> 

Again it's counting @Status under certain nodeset but I would like to count only those @Status which has value of 'Yes'.

Any help will be greatly appreciated.

I have a DVWP with a grouping. Now I have a column that contains either 'Yes' or 'No'. I am able to count the number of 'Yes' and "No' under certain grouping, however, I would like to know if there is anyway to count only 'Yes'?

Here is what the current xslt looks like: <xsl:value-of select="count($nodeset/@Status)" />

Again it's counting @Status under certain nodeset but I would like to count only those @Status which has value of 'Yes'.

Any help will be greatly appreciated.

I have a Data View Web Part with a grouping. Now I have a column that contains either 'Yes' or 'No'. I am able to count the number of 'Yes' and "No' under certain grouping, however, I would like to know if there is anyway to count only 'Yes'?

Here is what the current xslt looks like:

<xsl:value-of select="count($nodeset/@Status)" /> 

Again it's counting @Status under certain nodeset but I would like to count only those @Status which has value of 'Yes'.

Any help will be greatly appreciated.

Source Link
ppff
  • 123
  • 2

SP DVWP subtotal containing 'Yes' XPATH/XSLT question

I have a DVWP with a grouping. Now I have a column that contains either 'Yes' or 'No'. I am able to count the number of 'Yes' and "No' under certain grouping, however, I would like to know if there is anyway to count only 'Yes'?

Here is what the current xslt looks like: <xsl:value-of select="count($nodeset/@Status)" />

Again it's counting @Status under certain nodeset but I would like to count only those @Status which has value of 'Yes'.

Any help will be greatly appreciated.