Forum Discussion
Create daily AVERAGE Measure by condition
- Anonymous7 years ago
Hi Anonymous ,
Yes, like you said, maybe if you can support more sample data, then I will try to figure out the issue.
Thanks.
Aiolos Zhao
Hi Anonymous ,
Based on having created relationships between these tables as you said above, and set the Cross filter direction as Both, which will treat the these tables as a single table , then you can try to create measure like DAX below.
Measure1 = DIVIDE (CALCULATE(SUM('Employee and hours'[Hours]),FILTER(ALLSELECTED('ID and Project'), 'ID and Project'[ID] =MAX('ID and Project'[ID]))), CALCULATE(COUNT('ID and Project'[Project]),FILTER(ALLSELECTED('ID and Project'), 'ID and Project'[ID] =MAX('ID and Project'[ID]))))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello v-xicai ,
Thank you for your reply.
I have tried the measure below but it didn't work.
I guess more information is required to show the total hours.
Best regards,