Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Nested IF OR statement in Power Query

Hi,   Just wondering if someone could help with an error I'm getting from my Power Query IF / OR statement below which I am using to get times into a time bucket within a Custom Column.   I keep ...
  • v-zhenbw-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    Your greater signs and equal signs are not in the correct position, and you did not add double quotes to the fields after Then function.

    So you can refer this following formula,

     

    if [#"ReceievedDate - Time"] >= #time (0,0,0) or 
    [#"ReceievedDate - Time"] < #time  (1,0,0) 
    then "00:00 - 01:00"

     

     

    If you have any question, please kindly ask here and we will try to resolve it.

     

    Best regards,

     

    Community Support Team _ zhenbw

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.