cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper III

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

Hi All,

I have a table like so...

 Order Date Date Secured 11/11/2022 null 12/11/2022 null null 14/11/2022 null 15/11/2022 13/11/2022 null

I would like this result....

 Order Date Date Secured Close Date 11/11/2022 null 11/11/2022 12/11/2022 null 12/11/2022 null 14/11/2022 14/11/2022 null 15/11/2022 15/11/2022 13/11/2022 null 13/11/2022

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

Taylor

1 ACCEPTED SOLUTION
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])``

@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
2 REPLIES 2
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])``

@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Helper III

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

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors