function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
syeda syedasyeda syeda 

Hi all, i have a problem with calculating the average values based on picklist values.

Hi,

i have two piclkists in my custom visualforce page UI i.e picklist 1 name indicators: values are value1,value2, value3,value4 and second picklist name rating: values are super-3,good-2,bad-1. if i choose value1 in first picklist many times and if i choose relating rating values i need to caluculate average based on first picklist value and rating.
ex:
indiactors:value1               rating:super-3
                value2                         good-2
                value3                         bad-1
                value4
                                                     addrow button  remove button

if i click on addrow another picklists are displaying and if i select value1 again and again and ratings are 3,1,2 like that i need to calculate average and i need to put that average in another outputtext.please give me the snippet of code to solve this , help would be appriciated.
Thanks
syeda.
venkatesh jammivenkatesh jammi
<apex