DataBrewery / cubes

[NOT MAINTAINED] Light-weight Python OLAP framework for multi-dimensional data analysis
http://cubes.databrewery.org
Other
1.49k stars 314 forks source link

Don't add implicit levels to Drilldown from cut #415

Closed Stiivi closed 7 years ago

Stiivi commented 7 years ago

Currently the Drilldown adds additional levels based on the cut. This behavior is neither intuitive neither correct and should be removed.

Code relying on this behavior should add explicit level to their drilldown. Example:

Let's have dimension Geography with hierarchy levels: Region and Country. If the cut was region:1 and drilldown was geography, then the actual result contained data at the country level. Now it will contain data on the region level only. To get the original behavior, the caller should specify drilldown with level explicitly as: geography:country.