Forum Discussion
fill blank values with values in another column
- 6 years ago
Hi murali5431 ,
Just realized that the you have made the incorrect formula is not case but Table.
= Table.ReplaceValue(#"Time to complete entry",each [Vessel_Actual_Arrival_Date__c], each if [Vessel_Actual_Arrival_Date__c] <> null then [Vessel_Actual_Arrival_Date__c] else [Vessel_Estimated_Arrival_Date__c],Replacer.Replacevalue,{"Vessel_Actual_Arrival_Date__c"})
Hi murali5431 ,
Add a custom step and use the following code:
= Table.ReplaceValue(Source,each [Actual arrival date],each if [Actual arrival date] <> "" then [Actual arrival date] else [Expected date of arrival],Replacer.ReplaceValue,{"Actual arrival date"})MFelix .. Thanks for the response!
I am getting error when I added a new custom column as below
"Expression.Error: The name 'Case.ReplaceValue' wasn't recognized. Make sure it's spelled correctly."
I enetered as follows where "Case" is table name:
= Case.ReplaceValue(source,each [Vessel_Actual_Arrival_Date__c], each if [Vessel_Actual_Arrival_Date__c] <> null then [Vessel_Actual_Arrival_Date__c] else [Vessel_Estimated_Arrival_Date__c],Replacer.Replacevalue,{"Vessel_Actual_Arrival_Date__c"})
The previous step is "Time to complete entry", in case it helps.
- MFelix6 years agoSuper User
Hi murali5431 ,
First of all sorry for not refering that you must replace the Source by your previous step name so the values would be something similar to:
= Case.ReplaceValue(#"Time to complete entry",each [Vessel_Actual_Arrival_Date__c], each if [Vessel_Actual_Arrival_Date__c] <> null then [Vessel_Actual_Arrival_Date__c] else [Vessel_Estimated_Arrival_Date__c],Replacer.Replacevalue,{"Vessel_Actual_Arrival_Date__c"})
And this is not a new custom column you need to add a new custom step and then place this code on the formula bar, this will avoid creating new columns and deleting them.
Rigth click the last step on your query and then insert step after.
- murali54316 years agoHelper III
MFelix .. Thanks again!
I did as suggested, but I am still getting an error. I have provided a screenshot.
Regards,
Muraldhar
- MFelix6 years agoSuper User
What's the version you are using?