Forum Discussion

marcelfirk's avatar
marcelfirk
New Member
4 years ago
Solved

Syntax Error

Good morning, I created these formulas with conditionals to meet the needs, they work perfectly in the local PowerBI but when trying to use this code in APP.POWERBI to introduce in the data flow i...
  • v-jingzhang's avatar
    4 years ago

    Hi marcelfirk 

     

    Are you going to add two columns to a table in a Power BI dataflow? If so, this can be done with M code. 

     

    You can add two custom columns with below code

    if [Vencimento real] > 2021 and [Coligada do aluno] = "34" and [Filial do aluno] = "1" then "999" else [Coligada do aluno]
    if [Vencimento real] > 2021 and [Coligada do aluno] = "34" and [Filial do aluno] = "1" then "999" else [Coligada do aluno]

     

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.