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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
A_Scott
Helper I
Helper I

SUM Function cannot work with values of type String - But I use CONVERT and it still doesn't work...

I wrote a DAX statement:

Summary - Exit Surveys =
"Location currently has " & CONVERT ( [Str. Mgmt. Count], STRING ) & " members of store management and have completed "
    & [Completed Exit Surveys] & " Unobstructed & Emergency Exit Verification surveys in the last 7 days."
 
I get the error:
A_Scott_0-1680879461658.png

The only measure in my DAX statement that is a SUM function in it's original measure is the [Str. Mgmt. Count], which I have incorporated the CONVERT function to solve for the value being a string. But it still won't work... the measure [Completed Exit Surveys] is a COUNT function in it's original measure.

 

I wrote a similar DAX statement that worked perfectly...

Summary - Meat Saw =
"This location currently has " & 'All Measures'[Meat Saw Count] & " meat saw(s) that " & [Meat Saw Are/Aren't Meeting Min.] & " meeting the minimum required inspections per day."
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @A_Scott 

please try

Str. Mgmt. Count =

SUMX 

'All Open Retail Locations',

VALUE ( 'All Open Retail Locations'[Store.Mgr and ASL Count] )

)

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @A_Scott 

please try

Str. Mgmt. Count =

SUMX 

'All Open Retail Locations',

VALUE ( 'All Open Retail Locations'[Store.Mgr and ASL Count] )

)

Worked perfectly! Thanks for your help

FreemanZ
Super User
Super User

hi @A_Scott 

Are you creating a column or a measure?
[Completed Exit Surveys] and [Str. Mgmt. Count], what are they?

I am creating a measure. 

 

[Completed Exit Surveys] is : Completed Exit Surveys = DISTINCTCOUNT('Exit Survey Data'[ID]) +0

[Str. Mgmt. Count is] : Str. Mgmt. Count = sum('All Open Retail Locations'[Store.Mgr and ASL Count])

 

Even if I use the CONVERT function in the DAX for [Str. Mgmt. Count] instead of in the DAX for [Summary - Exit Survey] it still doesn't work.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.