Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

IF Function - 2 Conditions,

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.

1 ACCEPTED SOLUTION
ChandeepChhabra
Impactful Individual
Impactful Individual

@Anonymous , Please try this

 

=IF(Transfers[BOL Status]="In Transit",IF(AND(Transfers[Days in Transit]>=10,Transfers[Days in Transit]<=15),"Alert",IF(Transfers[Days in Transit]>15,"Priority")))

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

=IF(TransfersBI[BOL Status]="In Transit",IF([Days in Transit]>15,"Priority",IF([Days in Transit]>10,"Alert",BLANK())),BLANK())

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

this gives me the error, "the end of input was reacched"

ChandeepChhabra
Impactful Individual
Impactful Individual

@Anonymous , Please try this

 

=IF(Transfers[BOL Status]="In Transit",IF(AND(Transfers[Days in Transit]>=10,Transfers[Days in Transit]<=15),"Alert",IF(Transfers[Days in Transit]>15,"Priority")))

Anonymous
Not applicable

Perfect, thanks!

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.