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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
edins425
New Member

IF/AND/OR statement equivalent for Power BI

Hi, something I can do in excel and trying to replicate in my Power BI dataset is creating a column which looks at 2 other columns to report back "Labor", "Non-Labor" or blank. Here's the excel formula which does just that but I'm new to Power BI and can't figure out how to do it in Power BI Desktop.

 

=IF(Q2="revenues","",IF(AND(T2>="509510", T2<="520350"), "Labor", "Non-labor"))

 

Thanks in advance!

1 REPLY 1
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

I'm not 100% sure without seeing what you expect the data to look like but you could try this in a calculated column:  

 

Column = if('Table'[Q2]="revenues","",if(and('Table'[T2]>=509510,'Table'[T2]<=520350),"Labor", "Non-labor"))
 
this is the data i used:
 
DOLEARY85_0-1683659548247.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.