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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Difference between two values

Hi Team,

 

I have a query , In a table one column contains target and actual values, i want a column with the difference between target and actual value.

 

 

Regards,

Suresh Pantra.

5 REPLIES 5
Anonymous
Not applicable

Column = Table3[Actual] - Table3[Target]
Anonymous
Not applicable

Hi Milk,

Thanks for your reply, Can you please explain how am not able to find.

 

Anonymous
Not applicable

Ofcourse!

First select the table you want the new calculated column to be part of.

table.png

Second go to the modeling tab and click new column

miodelingtab.png

At last you need to fill in the code:

code.png

and then you get this:

dsfd.png

 

To further breakdown the code:

Column = Table3[Actual] - Table3[Target]

Column =  is the column name. you can change this to whatever you want. For example

Difference = Table3[Actual] - Table3[Target]

would work perfectly.

Table3[Actual] and [Target] are just the fields of your table. replace table3 with the table name of your own and Actual and Target with the correct column names.

 

Goodluck! 😄

Anonymous
Not applicable

Hi Milk ,

Thank you for spending time for my query. 

I have a data like this,

AccountTypeValue1Value2Value3
ABCBudget245
ABCTarget364
DEFBudget368
DEFTarget472.4
GHIBudget32.43.5
GHITarget45.63.6

 

In PBI Desktop if i use a slicer for account and if i select ABC i need a table like this,

AccountTypeValue1ValueValue3
ABCBudget245
ABCTarget364
ABCDifference12-1

 

Can you please suggest me ASAP.

 

Regards,

Suresh .

Anonymous
Not applicable

Hi Milk,

Thanks for your reply, Can you please explain how am not able to find.

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.