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
Anonymous
Not applicable

DAX measure not working

Weighted Average Spread =
DIVIDE([ANI*SPREADCURRENT], SUM('Pipeline'[ANI]))

So I've been using this DAX measure on the same report and same visuals for the past few weeks however, this morning when I've refreshed my report it has caused an error saying the sum does not work with string values. 
I haven't changed anything in my data, any ideas whats going on?
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , check, seem like datatype of one of the column has changed or updated . Check the columns below the measure. Under column tools . when you click on column it will show.

 

Also check data type in power query. Or check any datatype error in power query

correct that and make it number data type

View solution in original post

3 REPLIES 3
tex628
Community Champion
Community Champion

Hi, 

Sounds like something has occured in your sourcedata within the [ANI] column. I'd start by going into power query and making sure that you convert the column into a numeric datatype. If this returns an error there should be a value within the column that is incorrect. 

/ J


Connect on LinkedIn
amitchandak
Super User
Super User

@Anonymous , check, seem like datatype of one of the column has changed or updated . Check the columns below the measure. Under column tools . when you click on column it will show.

 

Also check data type in power query. Or check any datatype error in power query

correct that and make it number data type

Anonymous
Not applicable

Thank you so much! That helped correct everything.

However, I haven't touched that formula or table in a while so I dont understand why it would suddenly change?

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.