Forum Discussion
RahulPBI
Helper I
6 years agoCalculating If Delivery is Early, On Time or Late based on two dates
Hello I am new to power BI and looking for some help with Power Query M language I have a formula that works great in Excel and am looking for some help in recreating it in power query =IF([@[L...
- 6 years ago
In Add column this would be:
= if [Lead Time] = "" or [Lead Time] = [Actual Ship Date] then "On Time" else if [Lead Time] >= [Actual Ship Date] then "Early" else "Late"
artemus
Microsoft Employee
6 years agoIn Add column this would be:
= if [Lead Time] = "" or [Lead Time] = [Actual Ship Date] then
"On Time"
else if [Lead Time] >= [Actual Ship Date] then
"Early"
else
"Late"- RahulPBI6 years ago
Helper I
Hi Artemus
Thanks for your reply
I treid your solution, but when the Lead Time is "" or Null it shows Late instead of On Time
Thanks
- RahulPBI6 years ago
Helper I
Hi Artemus
Worked it out, instead of a custom column i used a Conditional Column and have got what I needed
Thanks for your guidance
Regard