Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Looking for help with this. Here is the formual I wrote:
Priority Status = if(TransfersBI[BOL Status]="In Transit",IF([Days in Transit]>10,"Alert",""), if(TransfersBI[BOL Status]="In Transit",IF([Days in Transit]>15,"priority","")))
There is a column that contains either the status of In Transit or Received. I am only interested in if the shipment is still In tranist.
There is another column that says how long it is in transit for. If it is greater than 10 days, then I want the Status to be alert. If its greater than 15 days, i want it to say priority.
For this formula, it will create the status of Alert for everything over 10 and it will not ever assign antything a priority status.
Solved! Go to Solution.
Had some time to write the code:
Priority Status = if(TransfersBI[BOL Status]="In Transit",IF([Days in Transit]>15,"Priority",if([Days in Transit]>10,"Alert","")),"")
You may add SWITCH Function as well.
Column =
IF (
TransfersBI[BOL Status] = "In Transit",
SWITCH (
TRUE (),
[Days in Transit] > 15, "priority",
[Days in Transit] > 10, "Alert"
)
)
You may add SWITCH Function as well.
Column =
IF (
TransfersBI[BOL Status] = "In Transit",
SWITCH (
TRUE (),
[Days in Transit] > 15, "priority",
[Days in Transit] > 10, "Alert"
)
)
You'll want to evaluate priority before alert. Anything over 10 fulfills your IF condition, so the code never goes to check the >15. Check for >15, then check for > 10.
Had some time to write the code:
Priority Status = if(TransfersBI[BOL Status]="In Transit",IF([Days in Transit]>15,"Priority",if([Days in Transit]>10,"Alert","")),"")
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 65 | |
| 31 | |
| 26 | |
| 26 |