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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
vjnvinod
Impactful Individual
Impactful Individual

sum column error

hi ,I need to sum all the values of one coloumn, but unfortunately it showing some syntax error?

can someone have a look and let me know, how to fix this?

 

sumfunction error.PNG

 

Regards, vinod

 

11 REPLIES 11
Anonymous
Not applicable

@vjnvinod

 

You have an extra ")" where it should be a "]". Try this:

 

TERFYTDUSD = SUM(Outbound[TER_FYTD_USD])

 Hope this helps,

Parker

vjnvinod
Impactful Individual
Impactful Individual

@Anonymous

 

thanks but

still not able to figure out, see the below error

 

error.PNG

Anonymous
Not applicable

Maybe create a Measure with a formula like TERFYTDUSD = CALCULATE(SUM(Outbound[TER_FYTD_USD]))

Anonymous
Not applicable

@vjnvinod

 

It looks like you're trying to do this sum in a Calculate Table expression. Try creating a measure or calculated column and then try this formula.

 

Parker

vjnvinod
Impactful Individual
Impactful Individual

@Anonymous

 

thanks,

I actually wanted to create a new table, by summing up of one of my coloumn in a different table.

how do i do that?

Anonymous
Not applicable

@vjnvinod

 

There may be a more elegant way of doing this but this works:

 

Table =
SELECTCOLUMNS(
   FILTER(
      Outbound,
      Outbound[TER_FYTD_USD]
   ),
   "New Column",
   SUM(Outbound[TER_FYTD_USD])
)

Hope this helps,

Parker

vjnvinod
Impactful Individual
Impactful Individual

@Anonymous

 

Hi, this still doesn't works, see the screenshot how the output is displayed.

 

Capture.PNG

Anonymous
Not applicable

@vjnvinod

 

Well we're getting closer. Try limiting to just 1 row using this formula:

 

Table =
TOPN(
   1,
   SELECTCOLUMNS(
   FILTER(
      Outbound,
      Outbound[TER_FYTD_USD]
   ),
   "New Column",
   SUM(Outbound[TER_FYTD_USD])
   )
)
vjnvinod
Impactful Individual
Impactful Individual

@Anonymous

 

this may not work in my other situations, I created a new coloumn using the below

SummarisedAccountsector = SELECTCOLUMNS(Inbound,"Sector",Inbound[AccountSector],"USD",Inbound[TER_FYTD_USD])

But whats happening is, i have only 3 account sector (Technology, Media & entertainment and Telecom)

my main issue is its not grouping the sector and their respetive aggregate sums

 

see the table table below

SectorUSD
Technology400000
Technology400000
Technology400000
media & entertainment400000
media & entertainment400000
media & entertainment400000
telecom700000
telecom700000
telecom700000

 

Expected table

 

SectorUSD
Technology400000
media & entertainment5000000
telecom700000

 

 

Hi @vjnvinod,

 

1. If you want to put a single value in a table, you could try the formula below.

Table 3 = {sum(FactSales[SalesQuantity])}

sum_column_error

2. You can try the following formula to get the expected table.

SummarisedAccountsector =
SUMMARIZE (
    Inbound,
    Inbound[AccountSector],
    "USD", SUM ( Inbound[TER_FYTD_USD] )
)

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

How have you arrived at the numers in the Expected table - they are difinitely not additions.  Anyways, just drag Sector to the row labels of the Table visual and then write a simple SUM measure

 

=SUM(Data[USD])

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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