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
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
Seth_C_Bauer
Community Champion
Community Champion

@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.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

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.
Seth_C_Bauer
Community Champion
Community Champion

@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.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Thanks!

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.