Forum Discussion

hosea_chumba's avatar
hosea_chumba
Icon for Helper I rankHelper I
4 years ago
Solved

DAX FORMULA FOR MULTIPLE CONDITIONS

Consider the Table1 below; my expected output is a calculated column/measure with three fields indicating "Inadequate Colleteral, Adequate Colleteral and Not Applicable" i.e. based on the below condi...
  • hosea_chumba's avatar
    hosea_chumba
    4 years ago

    I have added the expected Output, the last column to the right

  • Samarth_18's avatar
    4 years ago

    Hi hosea_chumba ,

     

    Please try this:-

    Column = 
    SWITCH(TRUE(),
    'Table'[Product ID ] in {2222,4444},"Not Applicable",
     DIVIDE('Table'[Collateral Amount],'Table'[Loan Amount],0)*100 >= 150,"Adequate colleteral",
     "Inadequate colleteral")

     

    Thanks,

    Samarth