Hi,
I am trying to use the Average () in the context menu, but I am not getting any option for it. Kindly help me with it. I am attaching the screenshot FYI.
Thanks,
Smita
Hello Smita
You can use Average in groups of similar data.
So you must first do a Group By and then choose another column to apply the Average.
João Heleno wrote:
Hello Joao
I tried with your suggested solution. But still facing the same issue.
1st I tried to group the rating value and then created a new attribute "RatingAvg". I am not getting any options for "average" aggregation. Kindly help me with this.
Thanks
Smita,
Average must be applied to an existing column.
You added a new calculated field and it won't work.
Hi Joao
Thanks for the information. But initially I tried with the existing column "Rating". going wrong. Please correct me where I am going wrong.
Please provide some feedback. Did you managed to go forward or are you still having problems?
JH
Thanks for the information. But initially I tried with the existing column "Rating". Please correct me where I am going wrong.
Dear Smiti,
I explained why you weren't seeing the average.
Also, I don't know what are you trying to achieve.
Whatever it is:
1. Do a Group By in Column X.
2. Do Average in Column Y.
Columns X and Y are different columns. One is X. The other is Y.
Adapt this information to your problem.
Cheers,
What I am trying to achieve is mentioned below.
1. I want to calculate the average star rating for an application.
2. I have the existing attribute "rating". I have created "count" attribute from "rating" attribute.
3. I am trying to create another attribue which will show average rating but unable to create it since the "average" is not showing.
Smita Dalai wrote:
Smita did you achieved your part..I'm still not getting that average func
Hi Smita,
What's the Data Type of the Rating attribute?
Paulo
Paulo Ferreira wrote:
Hi Paulo,
The Data type for rating attribute is "Integer".
hello,
Can anyone please clarify my doubt..
Im also not able to get the average function.
Sowndarya S
Hi Sowndarya,
What is the data type of the UserMovieRating.Rating attribute? Is it Integer or Decimal?
If it is and it still doesn't work, can you share your module so that I can take a look?
Regards,
Paulo Ferreira
Since Sawndarya already created a new topic for this, I'll close this one.