| Purpose | Understand how simple rules and Advanced Rules work together to control which records are included in a Cloudbeds Insights report. |
| Best for | Property managers, general managers, administrators, and owners who create or edit Cloudbeds Insights reports. |
| Use this when | You need to combine multiple filter conditions, decide between Match All and Match Any, or build grouped AND/OR logic. |
| Requirements | Cloudbeds Insights and a report you can create or edit. |
| Expected result | The report includes the records that satisfy the filter logic you intended to apply. |
| Limitations | This article focuses on creating and combining filter rules in Cloudbeds Insights. Reporting users can adjust supported temporary filters in Cloudbeds Reports, but those changes reset when the report is closed. |
Introduction
Filters control which records are included in report results. In Reporting, supported filters on Cloudbeds Reports can be temporarily adjusted to review different results. With Cloudbeds Insights, you can also create or edit reports and configure the filter rules used in them.
This article focuses on how those rules relate to each other. Use simple rules for straightforward conditions and Advanced Rules when the report requires grouped AND/OR logic.
Table of contents
Choose Match All or Match Any
When more than one condition is included at the same logic level, Match All or Match Any determines how those conditions work together.
| Option | Logic | How records are included |
|---|---|---|
| Match All | AND | A record must satisfy all conditions at that logic level. |
| Match Any | OR | A record only needs to satisfy one of the conditions at that logic level. |
For example, if two rules use Match All, a record must satisfy condition A AND condition B. With Match Any, the record can satisfy condition A OR condition B.
Match All and Match Any apply to the logic level where they appear. Advanced Rules can contain groups with their own Match All or Match Any settings.
The example below highlights the main controls in the Filters panel: 1 is the property selector, 2 is the Match All or Match Any control, 3 shows the Advanced Rules status, and 4 is Add rule.
Use simple rules
Use simple rules when the report only needs straightforward conditions at the same logic level. Each rule evaluates a field using an operator and, when required, a value.
For example, a Reservations report could contain:
- Booking Date Time - Property greater than or equal to Start Of Today.
- Repeat Guest Flag equal to Yes.
If the rules use Match All, both conditions must be true for a record to remain in the report. If they use Match Any, either condition can be true.
In the example below, 1 opens the Filters panel, 2 is the property selector, 3 contains the Match All setting and simple rules, and 4 applies the filter changes.
The available operators and values depend on the field you select. For definitions of filter operators and relative date values, see Glossary of Filter Terms and Date Presets.
Use Advanced Rules
Use Advanced Rules when the report requires multiple conditions with logic that is easier to manage separately from the simple rules in the main Filters panel. Advanced Rules can contain several rules at the same level and additional groups with their own Match All or Match Any logic.
Open Advanced Rules
Advanced Rules are configured from the Filters panel of a report you can edit:
- Open the report and select Filters.
- Click No Advanced Rules. If the report already contains Advanced Rules, the button shows the number of rules instead.
- In the Advanced Rules window, click Add Rule to create the first condition.
After the first rule is added, the Advanced Rules window displays the field, operator, and value controls together with Add Rule, Add Group, and the Match All or Match Any selector.
Add rules to the same group
Add multiple rules at the same level when all of the conditions need to be evaluated together. The Match All or Match Any setting determines how those rules relate to each other.
For example, you can define a booking window that includes reservations booked after the start of the current month and before the start of the next month. Set the Advanced Rules to Match All and add:
- Booking Date Time - Property greater than Start Of Current Month.
- Booking Date Time - Property less than Start Of Next Month.
Both conditions must be true for a reservation to remain in the results.
In the example below, 1 is the first booking-date rule, 2 adds another rule, 3 is the second booking-date rule, and 4 applies the Advanced Rules.
After the rules are applied, the Filters panel shows the number of Advanced Rules currently configured.
Add rule groups
Use Add Group when one part of the filter needs different logic from the rules at the main level. A group lets you keep required conditions together while allowing alternative conditions inside the group.
For example, you can keep the booking-date window from the previous example and add a group so that the reservation must also be either from a repeat guest or associated with a group profile.
To add this group:
- Open the existing Advanced Rules. The example below starts with the two booking-date rules already applied.
- Click Add Group.
The group's Match All or Match Any selector is initially disabled. Add and configure the first rule inside the group. The selector then becomes available so you can choose Match All or Match Any.
- Inside the new group, click Add Rule.
- Set the first rule to Repeat Guest Flag equal to Yes.
- Change the group's selector to Match Any.
- Click Add Rule inside the group again and set the second rule to Group Profile Name is not null.
- Click Apply.
In the first example below, 1 opens the existing Advanced Rules and 2 adds a new rule group.
After the group is created, add its first rule. In the example below, 3 is Add Rule inside the new group after configuring Repeat Guest Flag equal to Yes.
Once the group contains a rule, its Match All or Match Any selector becomes available. In the example below, 4 changes the group to Match Any, 5 shows the second rule, Group Profile Name is not null, and 6 applies the completed rule structure.
The resulting logic is: booking date after Start Of Current Month AND before Start Of Next Month AND (Repeat Guest Flag is Yes OR Group Profile Name has a value).
After applying the example rules, the report updates to include only records that satisfy that logic.
Use a group when different conditions need their own logic. If one field already lets you select several acceptable values in a single rule, you may not need separate OR rules for each value.
Review each logic level separately. A Match All or Match Any setting inside one group does not automatically determine the logic used by another group or by simple rules outside Advanced Rules.
For definitions of operators and date presets, see Glossary of Filter Terms and Date Presets.
Combine simple and Advanced Rules
Simple rules and Advanced Rules can be used in the same report. The main Match All or Match Any setting determines how the simple rules relate to the Advanced Rules set.
- Match All: The applicable Advanced Rules AND the simple rules must be satisfied.
- Match Any: The applicable Advanced Rules OR the simple rules can be satisfied.
The rules inside each Advanced Rules group still follow that group's own Match All or Match Any setting.
The example below shows an editable report where both Advanced Rules and simple rules are present. 1 is the Filters button, 2 is the property selector, 3 shows how many Advanced Rules are configured, and 4 contains the simple rules.
Review the complete logic before applying the filters, especially when the report combines multiple groups or mixes AND and OR conditions.
Next Operational Step
After the filter logic returns the records you expect, continue configuring and save the report as needed. See Build and configure a custom report in Cloudbeds Insights for the complete report-building workflow.
Comments
If I am selecting a filter for a stock report and I want to choose the filter "Room Type>Does Not Contain>" how do I enter multiple fields. I have seen in the past where you could use a "wildcard" like an "*" or an apostrophe around the phrase so you can add multiple phrases.
Example: does not include: Suite; would only exclude rooms that have suite in the name
Does not include: *suite**double*; would exclude rooms with suite OR double in the name.
Hi Dale McIntyre,
Thank you for your comment.
I went ahead and opened a ticket with our support team so they can offer you personalized assistance on this topic.
Thank you,
Please sign in to leave a comment.