I changed the attribute to use Analysis DR only and it worked. So no more Formula pointing to Analysis DR with steam function. In the analysis DR, I simply added more expressions and pointed the result to those attributes that goes to the rollup.
The initial idea was to have a flexible template by allowing the user to disable the attribute by modifying the Data Reference. Now I applied some if-then in the analysis to keep the flexibility, requiring the user to declare a variable in other attribute to express the option.