I would like your support.
In an time period of 1 week (7 days) I would like to isolate the measurements that occur in a time frame between Monday - Friday and from 7:00am to 17:00pm.
I want to collect the measurements only during working hours.
How can I do this in SAP BO?
Thank you very much.
Related
I am setting up a MySQL (Maria) where I am going to upload demo data for an application. In the demo date there will be many different dates from the last 6 months.
What I need to do is to keep all dates the same number of days from today all the time. So a date that is x number of days earlier or later than today keep that interval constant.
The demo data will be used in a PHP application so it is maybe an option to run PHP code to change the dates every day, or is it best done any other way?
I have been trying to just add +1, but it does not work on dates.
We need to store schedules for people in different time-zones, however the schedule repeats either weekly or in a particular day of the month. the problem is we can't store an exact date and can't store time-zone either due to some requirements. the initial solution that we came up with was use three columns :
day => which would specify the day of the recurring event such as "Monday" or "25",
start_time => which would specify the UTC time of the event starting,
end_time => which would specify the UTC time of the event ending.
databaseImageOfEntries
the problem is though if someone has a local time of +10-GMT for example, and they want to store a schedule for the first day of the month in their local time, then the conversion to UTC should give us the last day of the previous month at start_time of "14:00" UTC but some months are not 30 days, so we have no way of storing the correct day in the database since we can't determine what day it will be in each month.
I would really appreciate your suggestions.
I'm creating a table for shift times, each day has it's own start/end time. The table below only shows Sunday & Monday, but the actual table will have 7 days. I want to be able to display the current shift (desc) based on current time. This is straight forward until I get to 3rd shift, specifically past midnight. If it's 5am Monday, that is actually 3rd shift Sunday. How can I go about this, either to make a table work, or if there might be a better way to go about it?
ID Desc Sunday_Start Sunday_End Monday_Start Monday_End
1 1st 07:00:00 15:00:00 07:00:00 15:00:00
2 2nd 15:00:00 23:00:00 15:00:00 23:00:00
3 3rd 23:00:00 07:00:00 23:00:00 07:00:00
I noticed this post,
DateTime range issue when time passes midnight, but it looks like it is primarily for a repeatable shift from day to day.
The customer really wants each day to be different. I haven't decided if I will do in MySQL or just XML. So, one question, is there a better way to do this? I was searching for a calendar and using a repeating appointment, but I didn't see anything free that was worthwhile. Anyone have any insight on this?
I'm using Visual Studio 2015 vb.net & MySQL.
Your shift table should be like this...
Unlike excel, databases should always have ONE record (Row) per "Item"...
Note I used Shift_Length instead of Shift_End. Shift_Length is in hours. Shift_End can therefore be calculated from the two.
Now searching for the current shift simply involves determining if the current day & time is within Shift_Length of the indicated day and Start_Time.
I searched stack overflow and have come so close yet have not found if this is possible.
I want to group a weekly query from 11:30 am Friday to 11:29 am Friday for each week.
adding days and hours only partially work. I need to keep this in a mysql query not coding in php, etc.
You need to give more information on your table structure and some sample date. If I have understood correctly then below is simple pseudo code which you can start use to start framing your requirement .
select something from table where date between 1:30 am Friday and 11:29 am
group by trunc(date).
Note :
- Format the date in where condition using to_Date.
- Week definition might be different in database so you need to manipulate.
I am trying to get a statistic of post_impressions_* by a time frame (hour, day, etc) but all I seem to get is "lifetime"
{post_id}/insights/post_impressions_organic/lifetime
If I try anything other than lifetime, like week or day, I get nothing, and even if I could get lifetime, not sure how to break it down by day, or hour.
For example:
- impressions
-- day 3/25: 100
-- day 3/26: 200 total: 300
Unfortunately, you can't. Please check out Facebook docs: https://developers.facebook.com/docs/graph-api/reference/insights/
At this document you'll find all different metrics and the period you can use for each one. As you can see, post_impressions_organic* only offers "lifetime" period. You should see "day" or "week" on the period column in order to use a different period.
I hope it helps.