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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.