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]
)
AVG :=
AVERAGEX (
ADDCOLUMNS (
SUMMARIZE ( FACT_SALES_ST; FACT_SALES_ST[Business_type]; FACT_SALES_ST[Product_division]);
"Net Value"; CALCULATE ( SUM ( FACT_SALES_ST[Net] ) )
);
[Net Value]
)
popov, Thanks a lot!
It looks fantastic!
but (sorry), now have this
columns MKTG, RETAIL AND WHOLESALE are good, but Total Column show AVG for each row (accesories, apparel and footwear)
you can see de differences with this, in Total column is a SUM and Total row is the AVG
Thanks again!
- popov8 years agoResolver III
Could you share a sample file which can reproduce the issue?
- ivancornejo_8 years agoFrequent Visitor
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]
)