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

Join 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

Reply
HenryJS
Post Prodigy
Post Prodigy

New Column

Hi all,

 

How do I create a column for the below which states:

  • IF [HourlyOrShiftRate] = per day & Rate1PayRate >= 180
  • || IF [HourlyOrShiftRate] = per hour & Rate1PayRate >= 18
  • THEN Yes
  • Else Blank

 

Capture2.JPG

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @HenryJS 

= IF( 
OR([HourlyOrShiftRate] = "per day" && [Rate1PayRate] >= 180,
[HourlyOrShiftRate] = "per hour" && [Rate1PayRate] >= 18),
"Yes",
BLANK()
)

?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

3 REPLIES 3
edhans
Community Champion
Community Champion

@HenryJS if you can, create this column in Power Query. It creates a native column in Power BI and is much more efficient. The formula would be:

 

if ([HourlyOrShiftRate] = "per day" and [Rate1PayRate] >= 180) or 
([HourlyOrShiftRate] = "per hour" and [Rate1PayRate] >= 18) then "Yes"
else null

 

In general, try to avoid calculated columns. There are times to use them, but it is rare. Getting data out of the source system, creating columns in Power Query, or DAX Measures are usually preferred to calculated columns. See these references:
Calculated Columns vs Measures in DAX
Calculated Columns and Measures in DAX
Storage differences between calculated columns and calculated tables
Creating a Dynamic Date Table in Power Query 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
amitchandak
Super User
Super User

@HenryJS 

IF (([HourlyOrShiftRate] = "per day" && Rate1PayRate >= 180 ) || ( [HourlyOrShiftRate] = "per hour" & Rate1PayRate >= 18)
, "Yes", Blank())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
az38
Community Champion
Community Champion

Hi @HenryJS 

= IF( 
OR([HourlyOrShiftRate] = "per day" && [Rate1PayRate] >= 180,
[HourlyOrShiftRate] = "per hour" && [Rate1PayRate] >= 18),
"Yes",
BLANK()
)

?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.