Forum Discussion

AnjaD's avatar
AnjaD
New Member
3 years ago
Solved

Can't make IF statement work in Power BI

I am trying to create a new column using an IF statement. If the column 'Survey Type' = AML Quantitative then return with the value in column 'Status'. In the status column there are various answers ...
  • mlsx4's avatar
    3 years ago

    Hi AnjaD 

     

    In M, I think you need to use if conditional in this way:

     

    IF <condition> then <ResultTrue> else <ReturnFalse>

    So if I'm not wrong, you should write:

     

    IF [Survey Type]="AML Quantitative" then [Status]

     

     

    Anyway, taking into account the error given, the problem is you are missing a ")", so you need to add it, not to remove it