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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.