Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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:
My formula below for calculated column did not work, kindly assist.
| Loan Amount | Collateral Amount | Client ID | Product ID |
| 200 | 300 | X1 | 2222 |
| 100 | 400 | X3 | 3333 |
| 600 | 200 | X4 | 4444 |
| 300 | 450 | X6 | 5555 |
| 100 | 0 | X7 | 6666 |
| 400 | 400 | X9 | 2222 |
Solved! Go to Solution.
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
You need a calculated column for this, not a measure.
[Inadequately Secured] = // calc column, not a measure
IF(
NOT( T[Product ID] IN {2222, 4444} ),
IF(
T[Collateral Amount] >= 1.5 * T[Loan Amount],
"Adequate Security",
"Inadequate Security"
),
"Adequate Security"
)
If you use a measure... you won't be able to slice and dice by such values.
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |