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
Anonymous
Not applicable

Take values of two columns in one new column (new measure)

Dear Power BI community,

 

I am seeking for your support regarding the following question:

 

I have two columns:

 

* Column 1 with actual sales

* Column 2 with budget sales

* Both stored in a table showing these values per week

 

I want to create a third column (Column 3 - Calculated Sales) as a new measure which should contain the value per week from column 1. If this column does not have a value, the value should be taken from column 2. 

 

Can someone help me with the DAX formula to be used? 

 

Below a screenshot of the desired output:

PowerBIFellow_1-1624345575229.png

Thanks in advance for any suggestion. 

 

 

2 ACCEPTED SOLUTIONS
Fowmy
Super User
Super User

@Anonymous 

You can add as a Column 

Calculated Sales= IF( ISBLANK(Table[Actual Sales]) , Table[Budget Sales] , Table[Actual Sales])

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

@Anonymous 

Yes, possible

Calculated Sales= IF( ISBLANK(max(Table[Actual Sales])) , max(Table[Budget Sales]) , max(Table[Actual Sales]))
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@Anonymous 

You can add as a Column 

Calculated Sales= IF( ISBLANK(Table[Actual Sales]) , Table[Budget Sales] , Table[Actual Sales])

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Thanks. Can this also be done as a new measure?

@Anonymous 

Yes, possible

Calculated Sales= IF( ISBLANK(max(Table[Actual Sales])) , max(Table[Budget Sales]) , max(Table[Actual Sales]))
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.

Top Solution Authors
Top Kudoed Authors