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
Tarak_G
Microsoft Employee
Microsoft Employee

How Calculated Column works and didn't understand how sumx is evaluated in calculated column ?

Hi Team,

 

Just wanted to understand how calculated columns works ?

 

For Ex: 

I've written below two calculated columns in a table and these two calculated columns retuns the same result.

 

Here is the link for PBIX file  :https://1drv.ms/u/s!Au-aOkl1BoHugy-wjBKaEu957lDE?e=Pj8tbS


Calculated Columns :

 

Sales_Column = SUM(Sheet1[Sales])

Sumx_col = SUMX(Sheet1,Sheet1[Sales])

 

Here i didn't understand about the sumx_col : Sumx should calculate row by row but it will give us the total value like sum and attached below snap

 

Snap for result

 

Capture.PNG

 

Thanks In Advance

 

1 REPLY 1
amitchandak
Super User
Super User

@Tarak_G , In the case of a column, a complete table is considered. So you will get the grand total.

 

They will differ in measure

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

https://exceleratorbi.com.au/use-sum-vs-sumx/

 

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

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.