Forum Discussion

sanchit's avatar
sanchit
Frequent Visitor
10 years ago
Solved

Expression error: The name 'SWITCH' wasn't recognized. Make sure it's spelled correctly.

  Hi I am trying to create a custom column on “Time Column” using Switch. Format of Time Column-"10:30:00 AM". Desired Output : If Time is between “08:30:00 AM” and “10:30:00 AM" then “Peak Hours”...
  • MattAllington's avatar
    MattAllington
    10 years ago

    Ahhhh, that's the problem. Switch is a DAX formula, but you are trying to use it in Power Query, which uses the Power Query Formula Language (PQL)