Forum Discussion
DAX Average
Hello,
I have this data:
| Event ID | Date |
| 1 | June 1 2020 |
| 1 | June 1 2020 |
| 2 | June 3 2020 |
| 2 | June 3 2020 |
I just need to average the distinct count of event ID. I also have the measure for the discount of the EventID it's just that I can't average the measure that I did.
Regards,
Kevin
Hi, kevinedora ,
Try to create a measure.
Aver = DIVIDE( DISTINCTCOUNT('Table'[Event ID]),DISTINCTCOUNT('Table'[Date]))The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 Replies
- Jos_WoolleySolution Sage
Hi,
What's your expected result for that dataset, and why?
Regards
- kevinedoraHelper I
Sorry for the incomplete details. So my expected result should be 1 since there are 2 distinct values. But imagine I have multiple EventID in a day, I should be able to average the count of those distinct values.
- v-yalanwu-msftCommunity Support
Hi, kevinedora ,
Try to create a measure.
Aver = DIVIDE( DISTINCTCOUNT('Table'[Event ID]),DISTINCTCOUNT('Table'[Date]))The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- kevinedoraHelper I
Thank you, This works!