Title: Support filtering on table calculations · Issue #21 · lightdash/python-sdk · GitHub
Open Graph Title: Support filtering on table calculations · Issue #21 · lightdash/python-sdk
X Title: Support filtering on table calculations · Issue #21 · lightdash/python-sdk
Description: Use case Users define table calculations in SDK queries and need to filter results based on those calculated values. The API already supports table calculation filters via filters.tableCalculations, but the SDK has no way to reference ta...
Open Graph Description: Use case Users define table calculations in SDK queries and need to filter results based on those calculated values. The API already supports table calculation filters via filters.tableCalculations...
X Description: Use case Users define table calculations in SDK queries and need to filter results based on those calculated values. The API already supports table calculation filters via filters.tableCalculations...
Opengraph URL: https://github.com/lightdash/python-sdk/issues/21
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support filtering on table calculations","articleBody":"## Use case\n\nUsers define table calculations in SDK queries and need to filter results based on those calculated values. The API already supports table calculation filters via `filters.tableCalculations`, but the SDK has no way to reference table calculations in `.filter()` calls.\n\n## Root cause\n\nThe SDK's filter system is built exclusively around `Dimension` objects:\n- `DimensionFilter` in `filter.py` validates that `field` is a `Dimension` instance\n- `CompositeFilter.to_dict()` serializes all filters under the `\"dimensions\"` key\n- There is no `TableCalculationFilter` class or `\"tableCalculations\"` serialization path\n\n## Proposed solution\n\nAdd a filter type for table calculations that serializes under `filters.tableCalculations` in the API payload, similar to how `DimensionFilter` serializes under `filters.dimensions`.\n","author":{"url":"https://github.com/jpetey75","@type":"Person","name":"jpetey75"},"datePublished":"2026-06-12T20:53:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/21/python-sdk/issues/21"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:30e23162-e8e6-039a-6eea-0612644096e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE7C:25C9D0:12AFBB5:19B2F4F:6A4DE3F4 |
| html-safe-nonce | bc024b3c3a5d894332adbf62fdd63021e43209f2d31a5c4d7b4d35f6deca0049 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTdDOjI1QzlEMDoxMkFGQkI1OjE5QjJGNEY6NkE0REUzRjQiLCJ2aXNpdG9yX2lkIjoiMTM5NTkyMDUyMTA5MDk1MDEzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b975dc52424365103bec6606beae416c8b8a7e23c6cecfe756ce6cc833de1f75 |
| hovercard-subject-tag | issue:4652540222 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lightdash/python-sdk/21/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cee623e5e71eeeb6a35111b31a4d9e02a941edaaf4d8fd0d7f1ab6dd2b31b2a4/lightdash/python-sdk/issues/21 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cee623e5e71eeeb6a35111b31a4d9e02a941edaaf4d8fd0d7f1ab6dd2b31b2a4/lightdash/python-sdk/issues/21 |
| og:image:alt | Use case Users define table calculations in SDK queries and need to filter results based on those calculated values. The API already supports table calculation filters via filters.tableCalculations... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jpetey75 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/lightdash/python-sdk git https://github.com/lightdash/python-sdk.git |
| octolytics-dimension-user_id | 65912827 |
| octolytics-dimension-user_login | lightdash |
| octolytics-dimension-repository_id | 932695849 |
| octolytics-dimension-repository_nwo | lightdash/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 932695849 |
| octolytics-dimension-repository_network_root_nwo | lightdash/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width