Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello.
I have a matrix table with Orders per Customer by month below:
I want to be able to show the average instead of the total in the colum total but not in the row total. Not sure whether this is possible. Below is the desired result which is Orders per Customer divided by Month(today()):
Please help. Link to WIP file here: Link
Thanks!
Solved! Go to Solution.
Create a new measure like this
New measure=
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadconsider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Hi, your MONTH(TODAY()) returns the current month number and It assumes that the number of months in your matrix equals the current month. What if there are filtered months?
I would use,
Orders per Customer AVG =
VAR MonthCount =
CALCULATE(
DISTINCTCOUNT('Calendar'[Year Month]),
REMOVEFILTERS('Customer Table'[New or Existing])
)
RETURN
DIVIDE([Orders per Customer], MonthCount)and
OrdersPerCustomer_Adj =
IF(
ISINSCOPE('Calendar'[Year Month]),
[Orders per Customer],
[Orders per Customer AVG]
)Your 'Orders per Customer AVG' as below:
and Orders Per Customer:
@etane You want to show average in column total not in row total.. Like below ?
Attached is the pbix file for your reference.
Regards,
sanalytics
Hi @sanalytics .
Very close. I am hoping the entire Column Total shows average instead of sum (including the .35 as below):
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadconsider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
@FBergamaschi This should work if the user is not considering replacing the Month Count part.
Hi, your MONTH(TODAY()) returns the current month number and It assumes that the number of months in your matrix equals the current month. What if there are filtered months?
I would use,
Orders per Customer AVG =
VAR MonthCount =
CALCULATE(
DISTINCTCOUNT('Calendar'[Year Month]),
REMOVEFILTERS('Customer Table'[New or Existing])
)
RETURN
DIVIDE([Orders per Customer], MonthCount)and
OrdersPerCustomer_Adj =
IF(
ISINSCOPE('Calendar'[Year Month]),
[Orders per Customer],
[Orders per Customer AVG]
)Your 'Orders per Customer AVG' as below:
and Orders Per Customer:
Thanks! This works.
Create a new measure like this
New measure=
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadconsider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Thanks, in this case please mark it as a solution, I think you marked a different post and not mine (maybe your reply to my answer). Not referring to other solutions you accepted (it is OK to accept more than 1), just to the post you marked as a solution
Thanks
Yup I clicked the wrong post. Thanks again for your help.
Hi @etane i guess there is no built-in setting to override column totals to show an average while keeping row totals as a sum.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 10 | |
| 10 | |
| 6 | |
| 5 |