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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
If a part no. have Lenth, width height (not blank or zero any of the 3 columns) then YES else NO. I need your help.
| Part no | Lenth | width | Height | Result |
| 1233 | 3 | 0 | 5 | NO |
| 1234 | 8 | 6 | NO | |
| 1235 | 2 | 3 | 4 | YES |
| 1236 | 2 | NO | ||
| 1237 | 1 | 2 | 3 | YES |
Solved! Go to Solution.
Hello @sbhan4
Your question is unclear, do you have two tables or do you want the calculation in a single table.
My answer was for a table and I misplaced OR instead of y.
Medida: IF(SELECTEDVALUE(table[Length])>0 && SELECTEDVALUE(table[width])>0 && SELECTEDVALUE(table[Height])>0, "YES","NO")
O
Measurement: IF(ISBLANK(SELECTEDVALUE(table[Length]) ISBLANK(SELECTEDVALUE(table[width]) ISBLANK(SELECTEDVALUE(table[Height]) SELECTEDVALUE(table[Length]) ? 0 ? SELECTEDVALUE(table[width]) to 0 ? SELECTEDVALUE(table[Height]) to 0, "NO","YES")
@Anonymous
You're looking for an IF statement and not a vlookup..?
If so, create a new column
@darentengmfs Vlookup or ef else anything is fine. The REsult should come to like that
@Anonymous
Please try my formula in the reply above.
Hi @Anonymous
Please make sure your three number columns are of number type.
Measure = IF(SELECTEDVALUE(table[Length]>0 || SELECTEDVALUE(table[width]>0 || SELECTEDVALUE(table[Height]>0, "YES","NO")
OR
Measure = IF(ISBLANK(SELECTEDVALUE(table[Length]) || ISBLANK(SELECTEDVALUE(table[width]) || ISBLANK(SELECTEDVALUE(table[Height]) || SELECTEDVALUE(table[Length] = 0 || SELECTEDVALUE(table[width] = 0 || SELECTEDVALUE(table[Height] = 0, "NO","YES")
@Anonymous Hi Pranit,
Well formula should give me YES but giving me "NO". Any suggestions.
@Anonymous Thanks. Didn't work for me. Can you provide me pbix file for it?
Hello @sbhan4
Your question is unclear, do you have two tables or do you want the calculation in a single table.
My answer was for a table and I misplaced OR instead of y.
Medida: IF(SELECTEDVALUE(table[Length])>0 && SELECTEDVALUE(table[width])>0 && SELECTEDVALUE(table[Height])>0, "YES","NO")
O
Measurement: IF(ISBLANK(SELECTEDVALUE(table[Length]) ISBLANK(SELECTEDVALUE(table[width]) ISBLANK(SELECTEDVALUE(table[Height]) SELECTEDVALUE(table[Length]) ? 0 ? SELECTEDVALUE(table[width]) to 0 ? SELECTEDVALUE(table[Height]) to 0, "NO","YES")
@Anonymous
Formula given by @Anonymous works perfectly,
@Anonymous you have missed closing Parthese after each Selected value that is creating problem to him
Just Rewrite the Fucntion and Share
Proud to be a Super User!
@VijayP Thank you, Vijay! I have provided brackets as well but didn't work for me. Can you please try this out in pbix file.
@Anonymous
PFA
https://drive.google.com/file/d/1aJ9AjE90eDNT8ufKLHo79YBZ90EuteXj/view?usp=sharing
@Anonymous Did Small Change SELECTEDVALUE not requried
@Anonymous if you find this as solution please mention this as solution and share your Kudoes
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 192 | |
| 125 | |
| 99 | |
| 67 | |
| 48 |