Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guru's,
I am calculating sum(Days) in my barchart it is showing the no of days 9 it is correct ,I want to calculate AVG of the days,I used Avg(Days) expression in my chart it still showing 9 but as per my requirement it should show 4.5. Any help.
-Sateesh
Sum(Days)/Count(Total {<Name>}Days)
Could you post a demonstrative sample qvw? Or try, like:
Sum(Days)/Count(Total Days)
Nulls are not considered in the Avg calculation. Therefore is is taking the average of the non-null values only. If you post your qvw or a representative sample, you will get specific help on how to work around this in your case.
Hi Tresesco ,
Thanks for your quick reponse.
It's fine with out any selection , if I select Customer Name A the sum(days) of customer is 9 ,I wanted to see the avg of Customer Name A like 4.5 but it is showing still 9.
-Sateesh
Thank you Jonathan,
Attached is the QVW.
Thanks,
Sateesh
qvw is blank!
Sorry..
Pls find the attached
Sum(Days)/Count(Total {<Name>}Days)
Check the below expression
=Sum(Days)/Count(ALL Days)
Tresesco,
If I add one extra field, I am getting wrong result .? What If I have more than 3 fields.?