Forum Discussion
Anonymous
4 years agoNot applicable
Adding Average Column
Hi My question is more about visualization. I'm trying to create a table similar to the one below. Number of orders each month is sum of quantity. But I want to add additional column which is basic...
- 4 years ago
mahoneypat
4 years agoMicrosoft Employee
If your current measure is called "TotalQty" and your YM column is called "Month" in your Date table (for example), you can use a measure expression like this to get your result. Use it in place of your existing measure in your visual, and you will get the average monthly value in the Total column.
Qty = AVERAGEX(DISTINCT(Date[Month]), [TotalQty])
Pat
- Anonymous4 years agoNot applicable
Thanks mahoneypat . I was keen to know which visualization to use to show similar visualization to the one I showed above.
If I use the "Matrix", I can't add an additional column at the end of the table that will show the row average.