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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I have this use case, where I need to sum the value of the Category, and then show the max value. Does anyone know how I can achieve this using the calculated measure?
This is my data Set
| Category | Product | Value |
| A | Book | 1 |
| A | Furniture | 2 |
| B | Book | 3 |
| B | Furniture | 4 |
| C | Book | 5 |
| C | Furniture | 6 |
Initially, I would need to sum all value by category. The result should look like this
| Category | Value |
| A | 3 |
| B | 7 |
| C | 11 |
And then I need to show the value of "11" as a KPI, as it is the max value of all categories.
Please help.
Cheers,
Kev
Solved! Go to Solution.
Hi,
Download my PBI file from here.
Hope this helps.
Hi,
Write these measures
Total = SUM(Data[Value])
Max of total = MAXX(VALUES(Data[Category]),[Total])
Drag Max of total to your vosual.
Hey Ashish,
Thanks for the prompt reply.
I have tried the dax measure that you have provided. However, it give me the total values for all category instead. In this case it is "21". Am I missing anything?
Cheers,
Kev
Hi,
Download my PBI file from here.
Hope this helps.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 59 | |
| 51 | |
| 46 |