Forum Discussion

CarlBlunck's avatar
CarlBlunck
Icon for Resolver I rankResolver I
4 years ago
Solved

Expression.Error: We cannot convert the value "" to type List.

Hi community, I'm real new to powerBI and am getting this error in the following nested if statement: Nested if statement:   = Table.AddColumn(#"Added Custom1", "Custom", each if [HRStreamDesc] ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi CarlBlunck ,

     

    Please try:

    if [HRStreamDesc]<>"Nursing" then null else if List.ContainsAny( {[BaseClass]},{"AN","ANCSD"}) then "Assistant in Nursing" else null

     

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.