Forum Discussion
PowerUser123
Helper II
5 years agoMatrix - Show Max as Values but Sum as Total
I have a matrix that looks like this based on my below measure: Test = if(HASONEVALUE('Product'[ProductName]),MAX('Product'[ProductPrice]),SUM('Product'[Product Price])) My measure...
- 5 years ago
Hi PowerUser123 ,
Use the following measure, it will work as you expected:
measurename = SUMX ( SUMMARIZE ( 'Product', 'Product'[ProductName], "_MAXPRICE", MAX ( 'Product'[Product Price] ) ), [_MAXPRICE] )If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
v-deddai1-msft
Community Support
5 years agoHi PowerUser123 ,
Use the following measure, it will work as you expected:
measurename =
SUMX (
SUMMARIZE (
'Product',
'Product'[ProductName],
"_MAXPRICE", MAX ( 'Product'[Product Price] )
),
[_MAXPRICE]
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai