Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
Would like to seek your help on the below.
if Priority = 2 hours, then Pass, if not 2 hours, then failed,
if Priority = 4 hours, then Pass, if not 4 hours, then failed
Thank you so much for your answers. God Bless You
Solved! Go to Solution.
Try this:
IF (
priority = "p1",
IF (
duration <= 2,
"Pass",
"Fail"
),
IF (
priority = "p2",
IF (
duration <= 4,
"Pass",
"Fail"
),
BLANK ()
)
)
how about if priority and duration are on a different table?
that worked. thank you very much. 🙂
Hi there!
Try something like this:
SWITCH(
SELECTEDVALUE( Priority ),
"2 hours", "Pass",
"4 hours", "Pass",
"failed"
)
If your priority column is numeric then dont use double quotes.
Let me know if that helps!
hi, in bo the formula should be:
if (priority = p1, then (if duration <= 2, "pass", "fail") elseif (priority=p2, then (if duration >=4, "pass", "fail")
else "null"
Try this:
IF (
priority = "p1",
IF (
duration <= 2,
"Pass",
"Fail"
),
IF (
priority = "p2",
IF (
duration <= 4,
"Pass",
"Fail"
),
BLANK ()
)
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |