Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
hosea_chumba
Helper I
Helper I

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 conditions.

  1. Collateral amount must be at least 150% of the loan amount
  2. Condition (a) above does not apply for product ID "2222" and "4444"

My formula for calculated column did not work, kindly assist.

Table1:
Loan AmountCollateral AmountClient IDProduct ID Expected Output
200300X12222Not Applicable
100400X33333Adequate Colleteral
600200X44444Not Applicable
300450X65555Adequate Colleteral
1000X76666Inadequate Colleteral
400400X92222Inadequate Colleteral
3 ACCEPTED SOLUTIONS

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

View solution in original post

Samarth_18
Community Champion
Community Champion

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

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

Hi @hosea_chumba 
Please refer to attached file.

1.png

View solution in original post

4 REPLIES 4
Samarth_18
Community Champion
Community Champion

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

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

tamerj1
Super User
Super User

Hi @hosea_chumba 
Kindly add the expected results in an additional column to the same sample data with explanation.

Thank you.

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

Hi @hosea_chumba 
Please refer to attached file.

1.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.