Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculate column

How can i create calculate column with IF statement ?

  • Mariusz's avatar
    Mariusz
    6 years ago

    Hi Anonymous 

     

    Your Column names contain "[" and "]" characters and this is reserved for defining a column in M, so you need to wrap your column in [#"[your column]"] and this should clear the error.

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

     

6 Replies

  • az38's avatar
    az38
    Community Champion

    hi Anonymous 

    try

    = if [ZIPCH037].[LEVEL01].[MEMBER_CAPTION] <> "План ГПКЗ"  then 1 else 0
    • Anonymous's avatar
      Anonymous
      Not applicable

      I tried but already another exception

      • Mariusz's avatar
        Mariusz
        Community Champion

        Hi Anonymous 

         

        Your Column names contain "[" and "]" characters and this is reserved for defining a column in M, so you need to wrap your column in [#"[your column]"] and this should clear the error.

         

        Best Regards,
        Mariusz

        If this post helps, then please consider Accepting it as the solution.

         

  • Mariusz's avatar
    Mariusz
    Community Champion

    Hi Anonymous 

     

    Remove "(" and ")" 

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.