﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Reporting Services / Reporting Services 2008 Development  / Creating multiple repeating groups within another repeating group / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 00:06:39 GMT</lastBuildDate><ttl>20</ttl><item><title>Creating multiple repeating groups within another repeating group</title><link>http://www.sqlservercentral.com/Forums/Topic962197-1633-1.aspx</link><description>Hi,I have some XML like the following&amp;lt;Root&amp;gt;&amp;lt;Meters&amp;gt;&amp;lt;Meter&amp;gt;&amp;lt;Reads&amp;gt;&amp;lt;Read&amp;gt;...&amp;lt;/Read&amp;gt;&amp;lt;Read&amp;gt;...&amp;lt;/Read&amp;gt;&amp;lt;Read&amp;gt;...&amp;lt;/Read&amp;gt;&amp;lt;/Reads&amp;gt;&amp;lt;LineItems&amp;gt;&amp;lt;LineItem&amp;gt;...&amp;lt;/LineItem&amp;gt;&amp;lt;LineItem&amp;gt;...&amp;lt;/LineItem&amp;gt;&amp;lt;LineItem&amp;gt;...&amp;lt;/LineItem&amp;gt;&amp;lt;LineItem&amp;gt;...&amp;lt;/LineItem&amp;gt;&amp;lt;/LineItems&amp;gt;&amp;lt;/Meter&amp;gt;&amp;lt;Meter&amp;gt;&amp;lt;Reads&amp;gt;&amp;lt;Read&amp;gt;...&amp;lt;/Read&amp;gt;&amp;lt;Read&amp;gt;...&amp;lt;/Read&amp;gt;&amp;lt;Read&amp;gt;...&amp;lt;/Read&amp;gt;&amp;lt;/Reads&amp;gt;&amp;lt;LineItems&amp;gt;&amp;lt;LineItem&amp;gt;...&amp;lt;/LineItem&amp;gt;&amp;lt;LineItem&amp;gt;...&amp;lt;/LineItem&amp;gt;&amp;lt;LineItem&amp;gt;...&amp;lt;/LineItem&amp;gt;&amp;lt;LineItem&amp;gt;...&amp;lt;/LineItem&amp;gt;&amp;lt;/LineItems&amp;gt;&amp;lt;/Meter&amp;gt;&amp;lt;/Meters&amp;gt;&amp;lt;/Root&amp;gt;So for each &amp;lt;Meters&amp;gt; node, I can have multiple &amp;lt;Meter&amp;gt; nodes, for each &amp;lt;Reads&amp;gt; node, I can have multiple &amp;lt;Read&amp;gt; nodes, for each &amp;lt;LineItems&amp;gt; node, I can have multiple &amp;lt;LineItem&amp;gt; nodes. The contents within a &amp;lt;Read&amp;gt; node is completely different from the contents within a I am trying to convert this XML so that it can be displayed in a tablix, where the table grouping is on the meter node (so for each meter, this will create a row in the tablix), and for each row in the table, then I was looking to have this do its own grouping within it, with the &amp;lt;Reads&amp;gt; node being its own table within the tablix, that expands, depending on how many of the &amp;lt;Read&amp;gt; nodes there are, and then on the same level, then another grouping in another tablix for the &amp;lt;LineItems&amp;gt;, which will expand depending on how many &amp;lt;LineItem&amp;gt; nodes there are. For each &amp;lt;Meter&amp;gt; node, there will only be one &amp;lt;Reads&amp;gt; and &amp;lt;LineItems&amp;gt; node. I imagine that the tablix for the &amp;lt;LineItem&amp;gt; and the tablix for the &amp;lt;Read&amp;gt; nodes are both within a cell of the tablix for the &amp;lt;Meter&amp;gt; nodes, so it is basically a repeating group, and within it, I have two more repeating groups. Is this possible? It sounds possible in my head, but the main roadblock in my way is how do I create a single dataset from the XML that can do this? It needs to be a single dataset, so that I can do the grouping on the meter node I think? I wouldn't be able to do grouping on disparate datasets. I can take blocks of XML that can be represented by a block by using the &amp;lt;Query&amp;gt;&amp;lt;XMLData&amp;gt;...&amp;lt;/XMLData&amp;gt;&amp;lt;ElementPath&amp;gt;...&amp;lt;/ElementPath&amp;gt;&amp;lt;/Query&amp;gt; method, but if it is possible to use this to extract data out of a data source where the XML datasource is more complex.If this is possible, does anyone have any examples of this being done? Any help would be extremely welcomed.</description><pubDate>Mon, 02 Aug 2010 07:46:09 GMT</pubDate><dc:creator>kyagi.jo</dc:creator></item></channel></rss>