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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
cfp
New Member

function sum cannot work without a string

I'm trying to get the total sum of open cases per person and the grand total of open cases but I keep getting the function sum cannot work without a string error. I just updated my powerbi so I don't know if updating the version may have something to do with it because this formula worked for the past 2 months and now it does not work. I tried to refresh this data and ended up with this error. Any help would be greatly appreciated.

 

Thanks!

 

Formula - Total Sum = Sum('Open Cases by Agent' [Steve])+Sum('Open Cases by Agent'[Luke])+Sum'Open Cases by Agent' [Jared]))

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@cfp Go validate in both the Edit queries portion and the data portion of Power BI that all the data types are of numeric value. There may be an error or text value that slipped into the mix somehow.

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @cfp,

 

If the formula you shared is the formula you used. I 'm afraid that the formula has the syntax error. You should change it like below.

 

Total Sum =
SUM ( 'Open Cases by Agent'[Steve] ) + SUM ( 'Open Cases by Agent'[Luke] )
    + SUM ( 'Open Cases by Agent'[Jared] )

If you still need help, please share some your data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

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

@cfp Go validate in both the Edit queries portion and the data portion of Power BI that all the data types are of numeric value. There may be an error or text value that slipped into the mix somehow.

Thanks!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.