Forum Discussion
Anonymous
3 years agoNot applicable
Calculate weighed average
I want to make a measure that calculate a weighted average of how many minutes our customers have been actively shopping in our store but I can´t for the life of me figure out how to do this in DAX. ...
- 3 years ago
Try
Avg Minutes = VAR CustomerMinutes = SUMX ( 'Table', ( 'Table'[Minutes in store] - 'Table'[Minutes In Queue] ) * 'Table'[Customers] ) VAR Customers = SUM ( 'Table'[Customers] ) RETURN DIVIDE ( CustomerMinutes, Customers )
v-xiaotang
Community Support
3 years agoHi Anonymous
Thanks for reaching out to us.
I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.
If you need more help, please let me know.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.