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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
dbtornell
Frequent Visitor

IF Statement with multiple criteria

I have the following IF statement in Excel "=IF(D2<14,"(1)  <14 day",IF(D2<21,"(2)  14-21 days",IF(D2<30,"(3)  21-30 days",IF(D2<45,"(4)  30-45 days",IF(D2<60,"(5)  45-60 days",IF(D2<90,"(6)  60-90 days",IF(D2<120,"(7)  90-120 days","(8)  >120 days")))))))". How would I go about creating this statement in PowerBI?

 

Thanks,

David

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

@dbtornell,

 

Based on my test, we can use the steps below in power bi.

 

  1. Enter a list of sample data in power bi desktop.
  2. New a column and enter the formula as below:

 

 

Column = IF(Table1[test]<14, "(1) <14day",IF(Table1[test]<21, "(2) 14-21 days",IF(Table1[test]<31, "(3) 21-30 days", IF(Table1[test]<46, "(4) 30-45 days",IF(Table1[test]<61,"(5) 45-60 days",IF(Table1[test]<91, "(6) 60-90 days",IF(Table1[test]<121, "(7) 90-120 days", IF(Table1[test]>120, "(8) >120 days"))))))))

 

Then we can get the result showing the statement:

 1.PNG

 

For more information, please check the pbix as attached.

 

 

Regards,

Lydia

View solution in original post

1 REPLY 1
Anonymous
Not applicable

 

@dbtornell,

 

Based on my test, we can use the steps below in power bi.

 

  1. Enter a list of sample data in power bi desktop.
  2. New a column and enter the formula as below:

 

 

Column = IF(Table1[test]<14, "(1) <14day",IF(Table1[test]<21, "(2) 14-21 days",IF(Table1[test]<31, "(3) 21-30 days", IF(Table1[test]<46, "(4) 30-45 days",IF(Table1[test]<61,"(5) 45-60 days",IF(Table1[test]<91, "(6) 60-90 days",IF(Table1[test]<121, "(7) 90-120 days", IF(Table1[test]>120, "(8) >120 days"))))))))

 

Then we can get the result showing the statement:

 1.PNG

 

For more information, please check the pbix as attached.

 

 

Regards,

Lydia

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors