cancel
Showing results for 
Search instead for 
Did you mean: 
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

Accepted Solutions
Super User III
Super User III

Re: function sum cannot work without a string

@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
Super User III
Super User III

Re: function sum cannot work without a string

@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

v-piga-msft Resident Rockstar
Resident Rockstar

Re: function sum cannot work without a string

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.
cfp
New Member

Re: function sum cannot work without a string

Thanks!

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Top Solution Authors
Top Kudoed Authors