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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
yuvanne_11
Frequent Visitor

Creating a new measure for subtraction

Hello,

I am trying to create a new measure: 

ABS Value = Actual - Total, this is the formula I used but it gives me an error saying that the table name cannot be recognized or not found.

I also changed the summarization category to 'sum'. I guess the syntax is wrong. If anyone could help me with this it would be great.

Thanks!

Capture.PNG

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Without seeing the data model, I am not sure whether I understood your question correctly, but please try the below measure.

 

New Measure: =
SUMX ( 'TableName', 'TableName'[Actual] - 'TableName'[Total] )


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

5 REPLIES 5
yuvanne_11
Frequent Visitor

Hi,

It's working 

Thank you so much!

Jihwan_Kim
Super User
Super User

Hi,

Without seeing the data model, I am not sure whether I understood your question correctly, but please try the below measure.

 

New Measure: =
SUMX ( 'TableName', 'TableName'[Actual] - 'TableName'[Total] )


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Also, I tried using subtraction, I used this formula 

Forecast Accuracy = SUMX(1- ('Forecast Pivot','Forecast Pivot'[ABS Value]/'Forecast Pivot'[Actual]))
But it gives me an error that 'Operator or expression '( )' is not supported in this context. May I know what the mistake I did in this?

Hi,

Thank you for your message.

I am not sure by only seeing the measure, but please try the below.

 

Forecast Accuracy =
SUMX (
'Forecast Pivot',
1 - ( 'Forecast Pivot'[ABS Value] / 'Forecast Pivot'[Actual] )
)


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you for your help.

I did try using this formula but not getting any results. Attaching pic for reference. I am trying to predict sales for future using forecast accuracy.Capture 1.PNG

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.