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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
JemB123
Helper I
Helper I

If one column is blank select another column

HI, 

 

I am trying to work out the formula for this: if purchasing[Actual ship date] is blank select Purchasing[Confirmed ship date]. 

 

ie. PO number 26049 - Actual ship date = Blank, Confirmed ship date = 16/02/2024

Po number 28502 - Actual ship date = 19/04/2024 , Confirmed ship date = 13/04/2024

 

I want it to select actual ship date unless it is blank then confirmed ship date. 

 

Thank you !

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Write this calculated column formula

Actual date = if(isblank(purchasing[Actual ship date]),purchasing[Confirmed ship date],purchasing[Actual ship date])


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, @JemB123 

 

Based on your description, I have created many measures to achieve the effect you are looking for. Following picture shows the effect of the display.

vyaningymsft_1-1707890540757.png

Measure:

TureDate =

IF (

    ISBLANK ( SELECTEDVALUE ( 'Purchasing'[ Actual ship date] ) ),

    SELECTEDVALUE ( 'Purchasing'[Confirmed ship date] ),

    SELECTEDVALUE ( 'Purchasing'[ Actual ship date] )

)

 

If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

 

Ashish_Mathur
Super User
Super User

Hi,

Write this calculated column formula

Actual date = if(isblank(purchasing[Actual ship date]),purchasing[Confirmed ship date],purchasing[Actual ship date])


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
gadielsolis
Super User
Super User

Hello,

 

Please try the following DAX:

 

If ( ISBLANK(Selectedvalue([Actual Ship date])),Selectedvale([Confirmed ship date]),Selectedvalue([Actual Ship date]))

Unfortunately im getting 'too many arguments were passed'

JemB123_0-1707869981957.png

 

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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