Forum Discussion

Rockiz's avatar
Rockiz
New Member
2 years ago
Solved

If formula

Hi, I am trying below formula in custom column in power query but its showing error, please help on this if(and([is_blkd_for_secondary_costs_posting]="x",[is_blocked_for_commitment_posting]="x",[is_...
  • SachinNandanwar's avatar
    2 years ago

    I think instead of commas you need to replace them with and

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Rockiz 

     

    Here is another approach:

    if List.MatchesAll({[Column1],[Column2],[Column3],[Column4]}, each _ = "x") then "lock" else "active"

     

    Best Regards,
    Jing
    If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

  • Chewdata's avatar
    Chewdata
    2 years ago

    Also a good approach, but this will only work under the condition that "x" is the same value across all columns.