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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.