Forum Discussion

DionTN's avatar
DionTN
Helper II
4 years ago
Solved

Use calculation for multiple rows

Im trying to get a mean for every first measurement. So i have a function which calculates all the first measurements. I want to use this to get the mean of all first measurements.     Gemiddelde...
  • DionTN's avatar
    DionTN
    4 years ago

    Im sorry, the mistake was probably in the defination of FirstValue.

     

    It reads only the lowest firstValue. So in this example, only richard will get a score cause of he has appointmentID 1

    FirstValue = var selectie = SELECTEDVALUE(company[Name]) var EersteWaarde = CALCULATE(MIN(usermeasurements[AppointmentId]),FIRSTDATE(usermeasurements[OnderzoekVerichtOp]), FILTER(usermeasurements,usermeasurements[users.company.Name] = selectie)) return EersteWaarde