Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, I'm at the Powerbi desktop, working with a dataset where I need to sum up the SKU values by selecting the maximum in a few categories: export and account.
Solved! Go to Solution.
Thanks @Ashish_Mathur
Hi, @Syndicate_Admin
Based on your description, I've created the following sample data:
I've tried summing the category of the maximum value using the following metric expression:
MaxValue =
VAR _maxvalue = CALCULATE(MAX('Table'[Value]),ALLEXCEPT('Table','Table'[Category],'Table'[SubCategory]))
RETURN SUMX(FILTER('Table','Table'[Value]=_maxvalue),'Table'[Value])
Here are the results:
If you don't understand something, it would be helpful if you could provide some virtual sample data and describe the output you are looking for.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @Ashish_Mathur
Hi, @Syndicate_Admin
Based on your description, I've created the following sample data:
I've tried summing the category of the maximum value using the following metric expression:
MaxValue =
VAR _maxvalue = CALCULATE(MAX('Table'[Value]),ALLEXCEPT('Table','Table'[Category],'Table'[SubCategory]))
RETURN SUMX(FILTER('Table','Table'[Value]=_maxvalue),'Table'[Value])
Here are the results:
If you don't understand something, it would be helpful if you could provide some virtual sample data and describe the output you are looking for.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Share some data, explain the question and show the expected result.