Forum Discussion
How to replace null values in a column from another column
- Anonymous7 years ago
You can do this in Power Query pretty easily by adding a custom column with the following code:
if Month[End Date] = null then Month [Approved Date] else Month [End Date]
This will create a column that has no nulls and either the Month Approved Date or the Month End Date. You then can remove both the End Date and Approved date columns if you want.
Just repeat for the Year End column
You can do this in Power Query pretty easily by adding a custom column with the following code:
if Month[End Date] = null then Month [Approved Date] else Month [End Date]
This will create a column that has no nulls and either the Month Approved Date or the Month End Date. You then can remove both the End Date and Approved date columns if you want.
Just repeat for the Year End column
- ThenNumbersGuy7 years agoNew Member
Thank you so much! I have wasted hours trying to find the solution.
- Kisame016 years agoFrequent Visitor
Hi,
Is there a solution for this same formula, but for direct query?
Many thanks