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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Russobh
New Member

Update date based in a if statement in Power Query

Hi you all,
Hit a wall trying to figure how to update a custom column in Power Query:

Russobh_0-1647442430345.png

Here is an example of what I'm trying to accomplish. Have 3 columns with data, and the Update one I used the code:

 

if [Column A] <> null and [Column B] <> null and [Column C] <> null then Date.From(DateTime.LocalNow()) else null

 

This colum is a way for me to know when the conditions above were met, since the data is refreshed every day.

How can I make this work? All my atempts so far were failures.

Thanks

3 REPLIES 3
Russobh
New Member

Ok, what I want to do is:
1- Create a column with null values
2- Check an IF condition and fill the nulls with today's date
3- Repeat 2

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

What is the output expected as your condition is getting executed as per your logic i.e. if all are not null then populate the system date?

Basically I need to know when the condition was met. For example, if I have all columns ticked in today's update, it will return today's date. Then will do the same thing in the next days for the nulls values.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.