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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Super User
Super User

@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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.