Skip to Content
author's profile photo Former Member
Former Member

Crosstab with multiple rowset xml content

I have multiple rowsets (xml files) which I want to calculate subtotals from. Each xml data set has identical columns. If I union all the files together, the xml content contains multiple rowsets and the Crosstab function does not give me a summed value of each column, but instead it creates a column for each column in each rowset.

The Normalize and the rowset combiner transform both combine rowsets by appending the second dataset into new columns, is there any way to append the data into new rows instead?

Because my final file is going to have something over 30,000 rows (14Mb), I am reluctant to use a repeater on each row of each file to combine it into a new rowset. Is there an efficient way to handle this calculation?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Sep 06, 2007 at 01:57 PM


    Try using Join instead of Union.


    Add a comment
    10|10000 characters needed characters exceeded

    • Sue,

      I believe that we are off on the wrong foot here...all things aside...

      Join will work for your scenario when combined with other actions for your calculation and it will be easier to maintain than a stylesheet which will be beneficial to you in the end. Please do not be too quick to judge the solution 😊

      As for the error message that's one for support, what was the error in the logs?


  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2007 at 06:46 PM

    I used a solution proposed by Jeremy in another thread.


    That is to use an XSL transform stylesheet to combine the rowsets. Jeremy was good enough to provide the code for the transform in the thread.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Jeremy Good


      After I got the server rebooted, I tried using the JOIN again. After the 5th JOIN, Xacute began having memory errors, so I don't think this solution will work for me.

      Runing the transaction with the transform only takes about half an hour and solves my problem.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.