Forum Discussion
AVG instead Total in matrix
- 8 years ago
Hello, ivancornejo_
I tested new formula and get needed result.AVG =
AVERAGEX (
ADDCOLUMNS (
SUMMARIZE ( FACT_SALES_ST; DIM_PRODUCT_ST[Product_division] );
"Net Value"; CALCULATE ( SUM ( FACT_SALES_ST[Net] ) )
);
[Net Value]
)
Could you share a sample file which can reproduce the issue?
Sure! https://drive.google.com/file/d/1dkpbTxg6szl2nltu2yQYwYvR48cAK64A/view?usp=sharing
Thanks a lot
- popov8 years agoResolver III
Hello, ivancornejo_
I tested new formula and get needed result.AVG =
AVERAGEX (
ADDCOLUMNS (
SUMMARIZE ( FACT_SALES_ST; DIM_PRODUCT_ST[Product_division] );
"Net Value"; CALCULATE ( SUM ( FACT_SALES_ST[Net] ) )
);
[Net Value]
)- ivancornejo_8 years agoFrequent Visitor
- harib7 years agoPost Patron
- Anonymous7 years agoNot applicable
Hi popov ,
I have used your formula, but I am still getting SUM instead of AVG.
Any ideas?
AVG =AVERAGEX(ADDCOLUMNS(SUMMARIZE(product_per_store,'calendar'[Date].[Month]),"Net Value",[dayZ]),[Net Value])Thanks!- popov6 years agoResolver III
Hello, Anonymous,
You need to use column in table rows instead calendar'[Date].[Month])