Forum Discussion

hongho2's avatar
hongho2
Frequent Visitor
3 years ago
Solved

Custom column

Hi,

I am new to Power BI and I need help with the syntax, please. I am trying to add a new custom column, and although there are no errors detected at the bottom, I am seeing an expression error at the top. Please refer to the image below.

  • hongho2 You seem to be writing DAX in Power Query (M). The proper syntax for M (and yes, case matters) is:

    if [Purchase Office] =  [New Purchase Office] then "T" else "F"

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    hongho2 You seem to be writing DAX in Power Query (M). The proper syntax for M (and yes, case matters) is:

    if [Purchase Office] =  [New Purchase Office] then "T" else "F"