MAX(AGGR(COUNT(Expression),Dimension)) is not working properly
I'm losing my mind over this issue. The expression MAX(AGGR(COUNT(Operation_Idnum),Daynum)) is not working in a simple inline table as it is bringing me nulls in one of the dimensiones (that's not correct according to the data) and I'm losing my sanity searching for the reason.
I am really grateful for the help in advance. Kind regards.
I attach the qvf file wih the object and the issue.
The expression is MAX(AGGR(COUNT(Operation_Idnum),Daynum)), the dimension is OrderType.