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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors