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
Nanakwame
Helper II
Helper II

Using sumx to sum same categories listed in rows within a table

Hi Experts,

 

I have a table with different departments  listed as rows and a value for each. I am trying to have dax sum all values by department. I understand sumx can help achieve this result. Any idea how i can use sumx to sum the different departmants?

 

Thank you 

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @Nanakwame ,

 

Try measure like:

measure = SUMX(VALUES('Table'[departments  ]),[total])

If the problem still exists, please provide sample data and expected results so that we can better understand your scenario.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Nanakwame , If you want to have a department in visual, then even a simple sum would do.

Unless you have to do some row level operation, you can avoid using SumX function

 

refer

https://radacad.com/sum-vs-sumx-what-is-the-difference-of-the-two-dax-functions-in-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

HI @amitchandak 

 

I am trying to do a row level calculation to sum each department sales and use it in another calculation. so i am experting to row level calc to summarize the table and sum all departemnts belonging to each other 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors