March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 works correctly for the row totals going across. It shows the sum. However, I would also like to show the sum of the columns going down but it currently just shows the max value. Is there a way I can alter the above to show sums as the total and max as values?
Solved! Go to Solution.
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
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
Hi, @PowerUser123
I assume x y z are category.
Please try the below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hey @PowerUser123 ,
use this DAX to create your measure:
measurename =
SUMX(
VALUES('Product'[ProductName])
,CALCULATE(MAX(Product'[Product Price]))
)
Hopefully, this provides what you are looking for.
Regards,
Tom
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |