Configuring your behaviors
Now you will create a behavior. Behaviors enable you to set custom individual scope for how measure groups are used.
With behaviors, you can:
Enforce required selections of values from a field with a measure group.
Set which groups you prefer to be used with a measure group.
Set which groups you do not want used with a measure group.
Set a calendar period to be used by default with a measure group.
Behaviors are optional.
Why configure behaviors?
Like packages, behaviors help you set the scope for how groups are used together. Behaviors enable you to set narrow scope for how individual measure groups are used with other groups.
For example, when we search for fields from the Sales group in Insights, by default, measure results for Gross Profits are aggregated across all time. It would be more useful if you had a more recent period of time applied. You can create a behavior to use one of your calendar periods by default.
Creating a default calendar period behavior
Do the following:
Click Create behaviors.
Under Applies to, select Sales.
Under Behavior type, select Default calendar period.
Under Calendar group, select Order Date.
Under Period, select Month comparison.
Navigate to Insights and search for what is the average sales by employee. The matching results now displays a bar chart that compares 2020 sales for this month to 2019 sales for this month for each employee. For charts that do not support comparisons, the results for 2020 are shown instead.
You can change this default calendar period in Analysis period.