Forum Discussion
Create new column from existing columns
- 4 years ago
Please paste the data alongwith column names where problem is
Second line which starts with actdb_incident, need to have a comma at the end.
In Replaces value line, Source should be replaced with actdb_incident_user_outcomes
Not working.
let
Source = MySQL.Database("maketimecount-enc.cqc9l79hnudu.eu-west-2.rds.amazonaws.com", "actdb", [ReturnSingleDatabase=true]),
actdb_incident_user_outcomes = Source{[Schema="actdb",Item="incident_user_outcomes"]}[Data]
in
actdb_incident_user_outcomes,
#"Replaced Value" = Table.actdb_incident_user_outcomes(Source,"",null,Replacer.actdb_incident_user_outcomes,{"stander_outcome", "recomanded_outcome", "override_outcome", "final_rcommendation_outcome"}),
#"Added Custom" = Table.AddColumn(#"Replaced Value", "latest", each List.RemoveNulls({[override_outcome]}&{[final_rcommendation_outcome]}&{[recomanded_outcome]}&{[stander_outcome]}){0})
in
#"Added Custom"
- Vijay_A_Verma4 years agoMost Valuable Professional
Please paste the data alongwith column names where problem is
- Vijay_A_Verma4 years agoMost Valuable Professional
It was not properly merged. Use below one
let Source = MySQL.Database("maketimecount-enc.cqc9l79hnudu.eu-west-2.rds.amazonaws.com", "actdb", [ReturnSingleDatabase=true]), actdb_incident_user_outcomes = Source{[Schema="actdb",Item="incident_user_outcomes"]}[Data], #"Replaced Value" = Table.actdb_incident_user_outcomes(actdb_incident_user_outcomes,"",null,Replacer.actdb_incident_user_outcomes,{"stander_outcome", "recomanded_outcome", "override_outcome", "final_rcommendation_outcome"}), #"Added Custom" = Table.AddColumn(#"Replaced Value", "latest", each List.RemoveNulls({[override_outcome]}&{[final_rcommendation_outcome]}&{[recomanded_outcome]}&{[stander_outcome]}){0}) in #"Added Custom" - hello_MTC4 years agoHelper III
showing this error. spellings are correct too.
- hello_MTC4 years agoHelper III
Ok, I got an answer but in few rows it shows blank