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]
)
Hello!
Try this formula
AVG :=
AVERAGEX (
ADDCOLUMNS (
SUMMARIZE ( FACT_SALES_ST; FACT_SALES_ST[Business_type] );
"Net Value"; CALCULATE ( SUM ( FACT_SALES_ST[Net] ) )
);
[Net Value]
)
Really close! popov
thanks for quick answer
with your formual I get this. I have AVG but for row Total.
so, basically, need this
In "blue" row, I need the AVG, for each column
Hope you understand
- popov8 years agoResolver IIITry it:
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]
)- ivancornejo_8 years agoFrequent Visitor
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 AVGThanks again!
- popov8 years agoResolver III
Could you share a sample file which can reproduce the issue?