Good afternoon,
I am new to birst and trying to learn BQL expressions. I have a table setup and each column is a different expression. One of my expressions needs to count the the number of job orders that occurred yesterday, but does not include Saturday or Sundays. Here is my expression listed below, but I am getting zero results from the column. If I remove the AND DatePart(DayOfWeek,[Jobs.Job Last Transaction Date]) <> 1 OR 7, i get results but it's obviously not filtering out Saturday or Sunday's.
([Job Date: # Distinct Job] WHERE [Jobs.Job Last Transaction Date] = DateAdd(Day,-1,nowdate)) AND DatePart(DayOfWeek,[Jobs.Job Last Transaction Date]) <> 1 OR 7
Any ideas on the proper syntax?
thank you,