A dataset contains information you can use to create charts and analyze business metrics.
In this article, you'll learn about the calendar dataset. Use it to analyze events, meetings with attendees, their duration, availability, and meeting room usage.
Datasets:
Examples:
Choose a dataset
To analyze information in a dashboard, choose a suitable dataset and create a chart.
calendar_event — calendar events. This dataset contains data from calendar event system fields: time and duration, organizer, location, recurring events, and more. Use this dataset to analyze the number and duration of meetings, employee availability, and meeting room usage.
calendar_event
| Field | Description | Data type |
|---|---|---|
| ID | Event record ID | Number |
| PARENT_ID | Main event record ID | Number |
| IS_MASTER |
Shows whether this is the main event record: Y — yes, N — no. If attendees are invited to a meeting, the dataset includes one main meeting record and one record for each invitee
|
String |
| NAME | Event name | String |
| EVENT_TYPE | Event type: "Regular event", "Meeting via public link", "Meeting via CRM link", "Meeting via collab link", "Collab event", "Call", "Booking", "Resource booking" | String |
| CALENDAR_TYPE | Calendar type: "Personal calendar", "Group or project calendar", "Company calendar" | String |
| OWNER_ID | Calendar owner ID | Number |
| CREATED_BY_ID | ID of the event record author | Number |
| CREATED_BY_NAME | First and last name of the event record author | String |
| CREATED_BY | ID and name of the event record author | String |
| MEETING_HOST_ID | Meeting organizer ID | Number |
| MEETING_HOST_NAME | Meeting organizer's first and last name | String |
| MEETING_HOST | Meeting organizer ID and name | String |
| IS_MEETING |
Shows whether this is a meeting with attendees: Y — yes, N — no
|
String |
| MEETING_STATUS | Invitation response status: "Host", "Accepted", "Declined", "No response", "Not set" | String |
| DATE_FROM | Event start date and time | Date and time |
| DATE_TO | Event end date and time | Date and time |
| TIMEZONE_FROM | Event time zone | String |
| TIMEZONE_OFFSET | Event time zone offset from UTC, sec | Number |
| DURATION | Event duration, sec | Number |
| IS_FULL_DAY |
Shows whether the event lasts all day: Y — yes, N — no
|
String |
| IS_RECURRING |
Shows whether the event is recurring: Y — yes, N — no
|
String |
| RECURRENCE_RULE | Recurrence frequency: "Daily", "Weekly", "Monthly", "Yearly" | String |
| IS_RECURRENCE_EXCEPTION |
Shows whether one occurrence of the event was changed: Y — yes, N — no
|
String |
| ACCESSIBILITY | Availability in the calendar: "Busy", "Free", "Tentative", "Absent", "Not set" | String |
| IMPORTANCE | Event importance: "Normal", "High", "Low", "Not set" | String |
| IS_PRIVATE |
Shows whether this is a private event: Y — yes, N — no
|
String |
| LOCATION | Event location | String |
| LOCATION_TYPE | How the location is set: "Calendar meeting room", "Meeting room of the old type", "Text", "Not set" | String |
| LOCATION_ROOM_ID | ID of the calendar meeting room booked for the event | Number |
| LOCATION_ROOM_NAME | Name of the calendar meeting room booked for the event | String |
| DATE_CREATE | Event creation date and time | Date and time |
| TIMESTAMP_X | Date and time of the last event change | Date and time |
Create a chart
Add information from the dataset to charts. Analyze the number and duration of meetings, employee availability, and meeting room usage. Add the organizer to the chart to compare meeting counts and duration by employee.
- Open BI Builder > Charts.
- Click + Chart in the top-right corner.
- Choose the
calendar_eventdataset from the list. If you do not see the dataset you need, click Add a dataset.
Create a dataset - Choose a chart type — the format for viewing the information, such as a card, table, line chart, or another option.
- Click Create new chart.
Count meetings and their duration
Use a SQL query to count meetings and their total duration by organizer.
- Open BI Builder > SQL > SQL Lab.
- Make sure
bitrix24is selected in the Schema field. - Enter the SQL query and click Run.
- Review the query results. To create a chart for a report, save the query as a dataset.
Create a chart from a virtual dataset
If this is your first time working with SQL queries, use the sample below.
Example SQL query
This query shows the number of meetings and their total duration in hours by organizer.
SELECT MEETING_HOST AS "Organizer", COUNT(*) AS "Number of meetings", SUM(DURATION) / 3600.0 AS "Duration, h" FROM calendar_event WHERE IS_MEETING = 'Y' AND IS_MASTER = 'Y' GROUP BY MEETING_HOST;
In the query:
SELECTsets the fields in the result: organizer, number of meetings, and total durationMEETING_HOSTreturns the meeting organizer ID and nameCOUNT(*)counts the meetingsSUM(DURATION) / 3600.0adds up meeting durations in seconds and converts the result to hoursFROMsets the dataset —calendar_eventWHEREsets the filter: keeps only meetings with attendees and their main recordsIS_MEETING = 'Y'selects meetings with attendeesIS_MASTER = 'Y'excludes invitee records so one meeting is not counted more than onceGROUP BY MEETING_HOSTgroups meetings by organizer into one result row
For a recurring meeting, the query counts the series as one meeting. If a user changes a single occurrence, it is counted as an extra meeting.
In brief
- A dataset contains information you can use to create charts and analyze business metrics.
- The calendar dataset is calendar_event.
- Use this dataset to analyze the number and duration of meetings, employee availability, and meeting room usage.
- To count meetings by organizer, run an SQL query, save the result as a dataset, and create a chart.