The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
My formula for calculated column did not work, kindly assist.
Loan Amount | Collateral Amount | Client ID | Product ID | Expected Output |
200 | 300 | X1 | 2222 | Not Applicable |
100 | 400 | X3 | 3333 | Adequate Colleteral |
600 | 200 | X4 | 4444 | Not Applicable |
300 | 450 | X6 | 5555 | Adequate Colleteral |
100 | 0 | X7 | 6666 | Inadequate Colleteral |
400 | 400 | X9 | 2222 | Inadequate Colleteral |
Solved! Go to Solution.
I have added the expected Output, the last column to the right
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
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
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
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
8 | |
8 |