I am trying to create a code that generates group reports based on an object attribute Land_Use, which has 51 text values.
However, when I add the below code I get 51 individual reports
@StartRule
Generate-->
report(Land_Use, geometry.area/10000)
Like so:
and when I use either of the two codes below I get only reports on the entire object attribute.
@StartRule
Generate-->
report("total.Land_Use", geometry.area/10000)
@StartRule
Generate-->
report("Commercial Accomodation", geometry.area/10000)
Like so:
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.
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?
Solved! Go to Solution.
Hello @AlexWierzbicki
Thanks for your question. To create group reports based on an object attribute "Land_Use", you can concatenate the group name "total" with the string attribute value of "Land_Use".
attr Land_Use = "empty"
@StartRule
Generate -->
report("total."+Land_Use, geometry.area/10000)
This should yield the desired result:
Hello @AlexWierzbicki
Thanks for your question. To create group reports based on an object attribute "Land_Use", you can concatenate the group name "total" with the string attribute value of "Land_Use".
attr Land_Use = "empty"
@StartRule
Generate -->
report("total."+Land_Use, geometry.area/10000)
This should yield the desired result: