Forum Discussion

samsha786's avatar
samsha786
Helper I
6 years ago

Average of Measure Incorrect

Created this view:

Here's the measure for this: 

Allocation % = SUMX('Project Resources', ((DATEDIFF('Project Resources'[Assigned Start Date], 'Project Resources'[Assigned End Date], DAY)) * 'Project Resources'[Assigned Capacity]) / 365.0)

 

Works great! The problem comes in when I try to get the average value of this:

Allocation % Average = AVERAGEX('Project Resources', 'Project Resources'[Allocation %])
 
Please help! What am I doing wrong?

4 Replies

  • samsha786 , try something like this

    Allocation % Average = AVERAGEX(values('Project Resources'[Architecture chapter]), 'Project Resources'[Allocation %])

  • v-kelly-msft's avatar
    v-kelly-msft
    Community Support

    Hi  samsha786 ,

     

    As tested here,it seems that there's no problem in your measure,as you see below:

    So what kind of problem are you getting?Can you share part of your data and expected output to make the requirement more clear?

     

    Much appreciated.

     

    Best Regards,
    Kelly
    Did I answer your question? Mark my post as a solution!