Example 1, Tracking Sales for January

Example 1 tracks the Actual, Sales value for the following month, product, and region:

When the member being calculated is Jan, and when the Actual, Sales value of Colas for January exceeds 20, the example sends an e-mail to two e-mail accounts.

create trigger Sample.Basic.Trigger_Jan_20
where "(Jan,Sales,[100],East,Actual)"
when Jan > 20 and is(Year.currentmember,Jan) then
mail ([Docs.Company.com],[trgsales@company.com],
  [inventory@company.com], 
[Mail sent by trigger_Jan_20])
end;