-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Can't aggregate if the source question is an aggregated question #24839
Comments
It only happens if you don't run the query (Visualize) before saving in step 2. I wrote more about it #16671 (comment). |
Could you try again? |
@qnkhuat If you refresh the question after you have saved, then it works. Not quite sure what is going on here. |
Did some debugging and I think the problem is if BE returns result_metadata with a The reason running the question before creating a new nested question works is if you run a question, BE updates the result_metadata that will remove the I think we need to check the FE to see why the presence of |
This seems not to be backend and as far as I can tell -- this is intentional on the part of the FE -- well, it seems intentional to me, but the code is four years old. We call this
That method calls this
There's a filter in that method to check to make sure that the field is not an aggregation:
I think the reason this ever worked is because the FE terribly scrapes together various bits of field metadata and fails to include certain properties sometimes. I encountered this when testing #25109 and was surprised at the behavior and it took me a while to figure things out. Is this intentional or should we open things up? |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
I believe it should be fixed on the backend. There should be no such case that there is a different |
Describe the bug
There are no fields for aggregation in questions if the source question is aggregated
To Reproduce
Expected behavior
When clicking Summarize -> Sum of, there should be 2 fields: "Sum of Quantity" And "Average of Total"
Screenshots
If applicable, add screenshots to help explain your problem.
Information about your Metabase Installation:
Current master(c41ecda)
Severity
P2?
Additional info
A workaround is to turn the question into a model, but we also have a bug(#23248) with the model.
The text was updated successfully, but these errors were encountered: