Rounding of average values

Hi,

When I am trying to apply round function after applying average function, I am not getting desired output.
For example,
average(a,b,c) = 24.4
when I apply round(average(a,b,c)) output should be 24. But output that I am getting is 24.4

Please help me round off the average values

Hi Anu,

As both are database function 1st take average function then apply round. In this case round is applying before average so you have to create custom column.

Use the below query in your custom column to do average of particular column.

avg("monthly_profit"."profit")

In my case, “Monthly_Profit” is my table name and “Profit” is column name. save the query, then click more option on “Profit” column, then got to advanced function and select the function “Round” in numeric data type, then drag AVERAGE column into the function and specify the number to round. In my case am rounding to 2, save and generate the report to see the result.