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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors