You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is related to the issue #17 and the comment about the where: single_value adds Name as a required level and where uses this required level to do a "per" which make it null when Name is not expressed.
The issue is that singe value should not have required levels.
This can be reproduced like that:
m["test"] =atoti.agg.sum(
m["Score.SUM"],
scope=atoti.scope.origin(lvl["Name"])
)
m["test"]._required_levels# should be empty but isn't
My bad, I was wrong.
All the aggregation functions add required levels when using scope, but they are only transmit it to the next function in the case of single_value. If you do your use case with a tt.agg.sum instead of the single value you will have the expected result.
I will change the behavior of single value so it works as the other aggregation functions. It will only transmit the required levels if it is a store measure (m["test"] = store["test"])
Steps to reproduce
Actual Result
The measure
final
returns an empty cell forTotal Name
althoughunderlying
has a value:Expected Result
I would expect the final measure to return "SOMETHING" for "Total Name"
Environment
The text was updated successfully, but these errors were encountered: