Issue while creating a calculated column Via API

I have created a calculated column with formula "1 / ( SUM( Revenue * -1 ) + SUM( Revenue ) ) * SUM( Revenue ) ", now I have use this column with line chart and It is showing me like columnName (custom) , which means it doesn’t applied any aggregation on it.
Further on I created the same calculation Json at dataset level and tried to upload my analysis using this column in a Line chart using API but I am getting an error that Aggregation should be applied on this column, but when I tried to create the same column with Quicksight UI, it is giving me json with no aggregation applied . Is there any field which I need to update on JSON and again try to upload via API ?

Hi @Aditjain20,
So you are looking to apply aggregation to your formula? I would suggest looking further into the sumOver function.
Additionally, here is a useful article that assists with building out calculated fields in QuickSigh:

Let me know if this is not what you’re looking for help with or please provide some additional context on your issue so that we can better assist.

Thank you