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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Add a new column power bi desktop

Hello Community,

 

I need please your help.

I have a one table and i want to add a new column in power bi.

The new column's formula named MP Plan = ($mt Plan-$mt Actual) but i want 100-200 (because i'm intested only by the Plan Column and not Actual).

 

c.JPG

 

Thank you so much,

4 REPLIES 4
amitchandak
Super User
Super User

Create a measure( Not column) Sum($mt_plan) - Sum($mt_actual) .

Anonymous
Not applicable

Thank you for your answer.

I need a new column.

1- New column formula :

if (Scenario=Plan) then MP Diff = $mt Actual-$mt Plan (100-200=-100)

2- After i will use this formula to calculate another new column :

if (Scenario=Plan) then MP Diff Plan = MP Diff * Amount (-100*40=-400)

@amitchandak wrote:

Create a measure( Not column) Sum($mt_plan) - Sum($mt_actual) .


c.JPG

Hi @Anonymous 

 

I'm not very clear about your request:

 

1- New column formula :

if (Scenario=Plan) then MP Diff = $mt Actual-$mt Plan (100-200=-100)

 

when Scenario=Plan it should be 0-200=-200 why -100?

 

2, if (Scenario=Plan) then MP Diff Plan = MP Diff * Amount (-100*40=-400)

shouldn't be -4000?

 

3. where's the Amount column in your second capture? please kindly complete it.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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