🧑🍳Aggregating data
Aggregate in YouPrep™
Last updated
Was this helpful?
Was this helpful?

I would like to have the number of main cities by subcountries and countries. By adding a hierarchical rollup step, the output data structure stacks the data of every level of the hierarchy, specifying for every row the label, level and parent in dedicated columns.
Your YouPrep step should look like this:

Now I can add a filter to be able to have the ranking of the main city at the three levels:
- Ranking of the countries containing the most “main cities”
- Ranking of the sub countries containing the most “main cities”
- Ranking of the main cities
