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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Ttaylor9870
Helper III
Helper III

If null, then use other columns values (Easy IF statement maybe?)

Hi All,

 

I have a table like so...

 

Order DateDate Secured
11/11/2022null
12/11/2022null
null14/11/2022
null15/11/2022
13/11/2022null

 

I would like this result....

 

Order DateDate SecuredClose Date
11/11/2022null11/11/2022
12/11/2022null12/11/2022
null14/11/202214/11/2022
null15/11/202215/11/2022
13/11/2022null13/11/2022

 

Many Thanks all I will accept your solution if correct tomorow morning!

 

Taylor

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Ttaylor9870 So if it is really "null" as in the word "null" it would be:

Close Date Column = IF([Order Date] = "null",[Date Secured],[Order Date])

if the "null" in your data represents a "blank" the it is:

Close Date Column = IF([Order Date] = BLANK(),[Date Secured],[Order Date])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@Ttaylor9870 So if it is really "null" as in the word "null" it would be:

Close Date Column = IF([Order Date] = "null",[Date Secured],[Order Date])

if the "null" in your data represents a "blank" the it is:

Close Date Column = IF([Order Date] = BLANK(),[Date Secured],[Order Date])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Happy days that's perfect thank you very much!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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