Forum Discussion

hosea_chumba's avatar
hosea_chumba
Helper I
4 years ago
Solved

DAX EQUATION

Consider the Table1 below; my objective is to calculate a column/measure that identifies whether a loan amount meets or that does not meet the following condition or does not apply: Collateral amou...
  • PurpleGate's avatar
    4 years ago

     

    Hi, 

     

    How about something like this

     

    Security Measure = 
    VAR __Collateral = DIVIDE(SELECTEDVALUE('Table'[Collateral Amount]),SELECTEDVALUE('Table'[Loan Amount]))
    VAR __ProductID = SELECTEDVALUE('Table'[Product ID ])
    VAR __result = IF(__Collateral >=1.5 && __ProductID <> 2222 && __Collateral >=1.5 && __ProductID <> 4444,"Inadequate Security","Adequate Security")
    RETURN __result