Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

IF

Hi trying to create 

 

=IF(table[ordertypeD] = "Normal Order"), table[feild],"")

 

Getting an error on "Normal Order" 

Yet Normal Order exists in table[ordertypeD]

 

In fact I get an error as soon as i enter " 

 

suggestions ? 

 

 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous 

    Try

    =IF(table[ordertypeD] = "Normal Order", table[feild],blank())

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    Try

    =IF(table[ordertypeD] = "Normal Order", table[feild],blank())

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Pranit, no mate issue is not the blank "".....DAX is not recognising "Normal Order" 

       

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks mate....Syntax worked though was still getting the feilds appear red....Forgot to mention was DAX being used in Excel....The feilds stayed RED but the syntax worked and returned the desired result...thank you....! 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous  check the datatype once in the data tab....some times it could be datatype issue as well. or paste the sample data 

       

      Regards,

      Husna

  • Anonymous ,

    There is an Parenthesis error. It should be like:

    =IF(table[ordertypeD] = "Normal Order", table[feild],"")