<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating a group report based on an object attribute in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-group-report-based-on-an-object/m-p/1318237#M11113</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/662423"&gt;@AlexWierzbicki&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your question. To create &lt;SPAN&gt;group reports based on an object attribute "Land_Use", you can concatenate the group name "total" with the string attribute value of&amp;nbsp;"Land_Use".&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;attr Land_Use = "empty"

@StartRule
Generate --&amp;gt;
	report("total."+Land_Use, geometry.area/10000)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This should yield the desired result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasFuchs_0-1691999408051.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78009i1A0EC92C1523F9E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasFuchs_0-1691999408051.png" alt="ThomasFuchs_0-1691999408051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2023 07:50:29 GMT</pubDate>
    <dc:creator>ThomasFuchs</dc:creator>
    <dc:date>2023-08-14T07:50:29Z</dc:date>
    <item>
      <title>Creating a group report based on an object attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-group-report-based-on-an-object/m-p/1308496#M11078</link>
      <description>&lt;P&gt;I am trying to create a code that generates group reports based on an object attribute Land_Use, which has 51 text values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I add the below code I get 51 individual reports&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@StartRule
Generate--&amp;gt;
	report(Land_Use, geometry.area/10000)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexWierzbicki_0-1689552552808.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75497i00632818B1A0B5EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexWierzbicki_0-1689552552808.png" alt="AlexWierzbicki_0-1689552552808.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and when I use either of the two codes below I get only reports on the entire object attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@StartRule
Generate--&amp;gt;
	report("total.Land_Use", geometry.area/10000)&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;@StartRule
Generate--&amp;gt;
	report("Commercial Accomodation", geometry.area/10000)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexWierzbicki_1-1689552605494.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75498iE0640CC7D541C1E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexWierzbicki_1-1689552605494.png" alt="AlexWierzbicki_1-1689552605494.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've also tried adding much more complex code to separate out each attribute variable and then group, but it has had the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means my ability to use the dashboard function to analyse this data is limited. Can someone please help me as to where I'm going wrong?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 00:12:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-group-report-based-on-an-object/m-p/1308496#M11078</guid>
      <dc:creator>AlexWierzbicki</dc:creator>
      <dc:date>2023-07-17T00:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a group report based on an object attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-group-report-based-on-an-object/m-p/1318237#M11113</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/662423"&gt;@AlexWierzbicki&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your question. To create &lt;SPAN&gt;group reports based on an object attribute "Land_Use", you can concatenate the group name "total" with the string attribute value of&amp;nbsp;"Land_Use".&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;attr Land_Use = "empty"

@StartRule
Generate --&amp;gt;
	report("total."+Land_Use, geometry.area/10000)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This should yield the desired result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasFuchs_0-1691999408051.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78009i1A0EC92C1523F9E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasFuchs_0-1691999408051.png" alt="ThomasFuchs_0-1691999408051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 07:50:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-group-report-based-on-an-object/m-p/1318237#M11113</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2023-08-14T07:50:29Z</dc:date>
    </item>
  </channel>
</rss>

