Sometimes you want to display the number of group members that matched your criteria, rather than the number of datapoints. To do this, you will want to use the NUMELEMENTS iterator attribute.
{|RESULT|}#display the number of locations in the data set
Number of locations matching: {RESULT.LOCATIONS.NUMELEMENTS}
#this is necessary to get ToolZ to setup the query properly
{|LOOP|RESULT.LOCATIONS}{/|LOOP|}
{/|RESULT|}
{|NESTED|}
#display the number of districts in the data set
Number of districts matching: {NESTED.DISTRICTS.NUMELEMENTS}
{|LOOP|NESTED.DISTRICTS}
Number of locations in district: {DISTRICTS.LOCATIONS.NUMELEMENTS}
#this is necessary to get ToolZ to setup the query properly
{|LOOP|DISTRICTS.LOCATIONS}{/|LOOP|}
{/|LOOP|}
{/|NESTED|}
{|CROSSTAB|}
#display the number of districts in the data set
Number of districts matching: {CROSSTAB.DISTRICTS.NUMELEMENTS}
{|LOOP|CROSSTAB.DISTRICTS}
Number of months: {DISTRICTS.MONTH_OF_YEAR.NUMELEMENTS}
#this is necessary to get ToolZ to setup the query properly
{|LOOP|DISTRICTS.MONTH_OF_YEAR}{/|LOOP|}
{/|LOOP|}
{/|CROSSTAB|}