Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

negative cuts #32

Open
jbothma opened this issue Nov 12, 2018 · 1 comment
Open

negative cuts #32

jbothma opened this issue Nov 12, 2018 · 1 comment

Comments

@jbothma
Copy link

jbothma commented Nov 12, 2018

It'd be nice to be able to exclude specific values in cuts (blacklist).

for example, there's a special programme in out budget data that should generally be excluded from aggregates. To dynamically exclude it and include all other possible names, I'd need to do a members query, then remove the blacklisted item from the list, then cut with the remaining values as a whitelist.

Cubes does this with invert=True in their Python interface https://pythonhosted.org/cubes/reference/browser.html#slicing-and-dicing and looks like the do it with `!dimension:value in their HTTP interface https://github.com/DataBrewery/cubes/blob/master/cubes/query/cells.py#L796

I suggest something like cut=financial_year.year:2018|!programme.name:"Direct Charges against the National Revenue Fund" would return everything for 2018 excluding Direct Charges.

@jbothma
Copy link
Author

jbothma commented Nov 12, 2018

Another workaround is to disaggregate by the relevant dimension filter and aggregate on the client-side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant