Hi user20201,
Welcome to the Microsoft Q&A forum.
Based on your question you can customize this query by adjusting the columns, filters, and aggregation functions according to your specific requirements.
customMetrics
| project timestamp, name, value
| summarize avg(value), sum(value) by name
little more in detail
pageViews
| project session_Id, operation_Id, user_Id
| join (
customMetrics
| project timestamp, name, value, user_Id, operation_Id, session_Id
) on session_Id
| summarize avg(value), sum(value) by name, user_Id, session_Id
| summarize avg(avg_value), sum(sum_value) by name, session_Id
If you are still facing any issue, please let us know in the comments. We are happy to assist you.
If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post.