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

Need help with measure.

Hi All. I am trying to create a measure/calculated column using below formula:

Measure3 = var a = CALCULATE(SUMX(AM,AM[Column]),
FILTER (AM,AM[AM_OR_ATE]="Account Manager"))
return IF(ISBLANK(a),0,a)
 
And I am getting an error like this:
PRI123_0-1669275794806.png

How do i correct it ? Any help would be much appreciated. Thanks in Advance! 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have a column called "Opp Value" and by doing sum value, the measure is working for now 

View solution in original post

7 REPLIES 7
Uspace87
Resolver III
Resolver III

Have you checked the data type of  the field "am[Column]"? Maybe is formatted as text

Anonymous
Not applicable

yes it is of text data type and it is not changing to whole number

amitchandak
Super User
Super User

@Anonymous , This measure the data type AM[Column] is Text, change it whole number or use countx

 

you can also try

 

Measure3 = var a = CALCULATE(SUMX(AM,AM[Column]*1),
FILTER (AM,AM[AM_OR_ATE]="Account Manager"))
return IF(ISBLANK(a),0,a)

 

 

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

PRI123_0-1669276706133.png

I am getting an error like this

 

It Seems in your source you have the value formatted as M. Try to sobstitute "S" and "M" with "" and then multply all the column by  1,000,000

@Anonymous 

 

Can you change it to Whole Number Or Decimal Number in power query Editor?

Anonymous
Not applicable

I have a column called "Opp Value" and by doing sum value, the measure is working for now 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.