Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
csb
Frequent Visitor

Total for customerMax field

Hello,

 

  I need help to get in below matrix Total for customerMax field by adding all the values in that field,but right now it is giving me max value in that column(as I am considering max value in the entire field ,total is also showing max value) which is not what I need.I need to add all the max values of customermax  and show it in the total field.

 

 

 

csb_2-1749003017498.png

 

 

 As shown below Total should be 

1275000

 

 

csb_1-1749002847317.png

 

Thanks..

 

 

 

 

3 ACCEPTED SOLUTIONS
Ashish_Excel
Super User
Super User

Hi,

This DAX measure pattern should work

Measure = SUMX(VALUES(Data[Row field]),[Max_measure])

To receive any further help, share the download link of the PBI file.  Show the expected result there.

View solution in original post

grazitti_sapna
Super User
Super User

Hi @csb 

Try using below dax measure for total sum of all the values:

CustomerMaxSum =
SUMX(
VALUES('Table'[Customer]),
CALCULATE(MAX('Table'[Value]))
)

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!


View solution in original post

v-pnaroju-msft
Community Support
Community Support

Thank you, @Ritaf1983 , @Ashish_Excel , and @grazitti_sapna , for your responses.

Hi @csb,

We appreciate your inquiry posted on the Microsoft Fabric Community Forum.

Please find attached the screenshot and the PBIX file which may assist in resolving the issue:

vpnarojumsft_0-1749033353810.png

If you find our response helpful, kindly consider marking it as the accepted solution and providing kudos. This will help other community members who might have similar queries.

Should you have any further questions, please feel free to contact the Microsoft Fabric Community.

Thank you.

View solution in original post

5 REPLIES 5
v-pnaroju-msft
Community Support
Community Support

Thank you, @Ritaf1983 , @Ashish_Excel , and @grazitti_sapna , for your responses.

Hi @csb,

We appreciate your inquiry posted on the Microsoft Fabric Community Forum.

Please find attached the screenshot and the PBIX file which may assist in resolving the issue:

vpnarojumsft_0-1749033353810.png

If you find our response helpful, kindly consider marking it as the accepted solution and providing kudos. This will help other community members who might have similar queries.

Should you have any further questions, please feel free to contact the Microsoft Fabric Community.

Thank you.

Thank you.This works.Can you please suggest tool where DAX can be understood ,practised and debugged

with examples for beginners.

grazitti_sapna
Super User
Super User

Hi @csb 

Try using below dax measure for total sum of all the values:

CustomerMaxSum =
SUMX(
VALUES('Table'[Customer]),
CALCULATE(MAX('Table'[Value]))
)

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!


Ashish_Excel
Super User
Super User

Hi,

This DAX measure pattern should work

Measure = SUMX(VALUES(Data[Row field]),[Max_measure])

To receive any further help, share the download link of the PBI file.  Show the expected result there.

Ritaf1983
Super User
Super User

Hi @csb 

In Power BI, the total row in a matrix doesn't work like in Excel. It doesn't just add the numbers shown above — it recalculates the same expression (like MAX) in a broader context, ignoring row-level filters.

That's why you're seeing only 700,000 in the total for Max of CustomerMax. Power BI is calculating the overall MAX across all divisions, instead of summing each division's MAX.

To fix this, you need a DAX measure that behaves differently in row vs. total:

DAX


CustomerMaxFixed :=
IF(
ISINSCOPE('YourTable'[Division_Code]),
MAX('YourTable'[CustomerMax]),
SUMX(
VALUES('YourTable'[Division_Code]),
CALCULATE(MAX('YourTable'[CustomerMax]))
)
)


Replace 'YourTable' with your actual table name.

Show the sum of those max values in the total row — which is what you expect (1,275,000).

To get more accurate help, please consider uploading your .pbix to a public cloud folder (like OneDrive, Google Drive, or WeTransfer) and sharing the link.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.