Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Need to convert M query as Dax fuction code

@Jihwan_Kim@johnt75@amitchandak Hi all,   Could you anybody please convert this below M query to Dax function   
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    Please try this.

    Result_OPS = 
    SWITCH(
        TRUE(),
        CONTAINS('Table','Table'[PP],'Table'[Ops],'Table'[Image  Name],'Table'[Image  Name]),"Match",
        'Table'[Ops]=BLANK(),BLANK(),
        "Not Match"
    )
    Result_PP = 
    SWITCH(
        TRUE(),
        CONTAINS('Table','Table'[Ops],'Table'[PP],'Table'[Image  Name],'Table'[Image  Name]),"Match",
        'Table'[PP]=BLANK(),BLANK(),
        "Not Match"
    )

     

     

    Attach the PBIX file for reference. Hope it helps.

     

    Best Regards,
    Community Support Team_Gao

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!