If I have 3 levels of data, like: Country, state and city.
If every row in my table is a city info, for example roads names. If I need group data by city, state and country, for example, compare the number of roads in a city with state. Is there a way to do this?
I’m trying to group by state and when I try to compare city values with state I got this error:
Hi @igfasouza,
When dealing with errors like this, like mismatched aggregations, you’ll have to incorporate the usage of Level-Aware Calculations (LAC).
Looking at your calculated fields, I would suggest that you explore the CountOver function as opposed to the regular ‘count’.
Let me know if this works for your case or if you have additional questions.
Hi @igfasouza,
Since we have not heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community and link this discussion for relevant information if needed.