Forum Discussion
Average of Distinct values
Hi,
Try this measure
=AVERAGEX(SUMMARIZE(VALUES(Calendar[Month]),[Month],"ABCD",SUM('Resource Allocation Forecast'[Allocation %])),[ABCD])
Drag this measure to a card visual. In the slicer/filter, select a particular resource and year. Ensure that the Year is dragged from the Calendar Table. There should be a relationship from the Date column of the Resource Allocation Forecast table to the Date column of the Calendar Table.
Thank you for helping me .
I tried the dax but, this giving me a in correnct average value
Card Value
Average = AVERAGEX(SUMMARIZE(VALUES('Date'[Calendar Month Name]),[Calendar Month Name],"ABCD",SUM('Resource Allocation Forecast'[Allocation %])),[ABCD])
How can we sum the distinct values ? I hvae multiple entries for a single resouce accoriding to their start and end date.
Below is the DAX which I am using for calculating the total of project hours for emplyess in every month/week. incase if this helps to understand better.
Total Allocation = SUMX(DISTINCT('Resource Allocation Forecast'[ProjectId]),CALCULATE(AVERAGE('Resource Allocation Forecast'[Allocation %])))
Thanks,
Apaco