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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.