Subject:Summarize/Distinct Author:Neal Walters Date:05 Oct 2006 03:57 PM
I need to do something like a SQL
"select sum(a), count(b) group by providername", and the tools available are Biztalk, Xpath in Biztalk, and XSLT.
I'm thinking maybe an XSLT is the best way, but not sure if it's possible. I looked at other posts about doing a "distinct" in XPath, but they all looked dependent on the data order (which I cannot control, unless I do another XSLT pass to sort it?)
I have attached a very small sample input and desired output.
Our client recently bought 5 enterprise licenses!
Subject:Summarize/Distinct Author:Neal Walters Date:12 Oct 2006 01:52 PM
I have changed the scenario slightly, adding multiple lineitem elements to each provider, and I need to count them.
I'm having difficulty getting this line to work:
<numberLineItemsProcessed>
<!-- How to get next line to work -->
<xsl:value-of select="count(claims/claim[providerName=$currentProviderName]/lineitem)"/>
</numberLineItemsProcessed>