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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.