Forum Discussion
Nathanael04
3 years agoFrequent Visitor
IF function Need Help
I've been having this issue for days already and i hope someone can help me with this. = Table.AddColumn(#"Removed Columns", "Custom", each if[order_estimated_delivery_date] >0 then "Early Delive...
- 3 years ago
See attached file. It's the same code as earlier. Do note that the [order_estimated_delivery_date] column in the data you have shared is of type date but it is an integer in the data you showed on your initial post. Integer is what makes sense here so I have replaced the dates with some random numbers in the data for the example
Please accept the solution when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
AlB
3 years agoCommunity Champion
Hi Nathanael04
= Table.AddColumn(#"Removed Columns", "Custom", each
if [order_estimated_delivery_date] >0 then "Early Delivery" else
if [order_estimated_delivery_date] =0 then "On Time" else
if [order_estimated_delivery_date] <=0 then "Late Delivery" else null )
|
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
- Nathanael043 years agoFrequent Visitor
Expression.Error: 2 arguments were passed to a function which expects between 3 and 4.
Details:
Pattern=
Arguments=[List]