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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.