Categorizing with rules
Create rules that file transactions by merchant, amount, account or day, split a payment across categories, and see how Mozaic learns from your edits.
Updated
Mozaic in short: a budgeting and investment tracker for Canadians, built in Longueuil, Québec, with a full French version. The free plan needs no card and has no time limit: you add your accounts by hand or by CSV. Automatic sync is $99 CAD a year or $12.99 CAD a month after a 14-day trial, and connects RBC, TD, BMO, Scotiabank, CIBC, National Bank, Desjardins and Tangerine through Plaid, and Wealthsimple, Questrade and Interactive Brokers through SnapTrade. Plans · Every supported institution
A rule says “transactions from this merchant go in this category”. It can also look at the amount, the account and the day of the month, and split a payment across several categories. Mozaic applies your rules first, before any other way of choosing a category. It also writes rules for you when you correct a category.
Open the rules page
On the Transactions page, select Manage Rules. The Transaction Rules page lists every rule. Use Search rules... to find one by pattern or category, and the All Rules or Active Only tabs to filter.
Each rule shows its pattern, its category and an Active or Inactive badge, plus its conditions (such as Days 28 to 3) and, for a split rule, Split into its number of lines. A rule tied to an account names it, or reads Account no longer connected once that account is removed; such a rule stops matching, so edit it to pick the new account. Rules Mozaic made carry a line saying where they came from: Learned from your edits or Suggested by AI. Your own rules have no such line.
Create a rule
- Select New Rule (or Create Your First Rule if you have none yet).
- In Merchant Pattern, type the text to look for, for example a store name.
- Choose the category.
- Choose a Match Type (see below). Contains is the default.
- Optionally, select Conditions to narrow the rule, or Split to share each payment across several categories (both explained below).
- Leave Active on so the rule runs on new transactions.
- Turn on Apply to Existing if you also want it to fill your uncategorized transactions now.
- Select Create Rule.
To change a rule later, select Edit on it, make your changes and select Update Rule.
Match types and priority
Rules look at the merchant name (or the description when there is no merchant) and the ticker symbol. Upper and lower case don’t matter.
- Exact: the whole name must equal the pattern.
- Starts With: the name begins with the pattern.
- Contains: the pattern appears anywhere in the name.
- Regex: the pattern is a regular expression, for advanced use.
When several rules match, the more precise one wins: Exact, then Starts With, then Contains, then Regex. Of two rules with the same match type, the one with conditions wins. You can’t have two rules without conditions on the same pattern and match type, but you can add as many with conditions as you need.
Narrow a rule with conditions
Select Conditions in the rule form to add any of these. A rule with conditions matches only the transactions that meet all of them.
- Amount from and Amount up to: the size of the transaction, whether money came in or went out. Fill one for “at least” or “up to”, or both with the same figure for an exact amount.
- Account: only transactions in one account. Any account is the default.
- From day and To day: only transactions dated within those days of the month. The range can cross the end of the month: From day 28 To day 3 covers the 28th through the 3rd. A day past the end of a short month means its last day, so the 31st is April 30.
For example, two rules on “COSTCO” can file trips Up to $100 under Groceries and larger ones under Household. A transaction with no amount or no date matches no rule that has a condition on it. A rule tied to an account never files a row from a CSV import, because the import has not chosen its account yet when rules run; amount and day conditions still apply to imports.
Split a payment across categories
Select Split in the rule form to replace the category with lines. Each matching transaction is then split into those lines, each with its own category, and the lines always add up to the transaction’s amount, to the cent. Choose a Line type for each:
- Fixed amount: the same amount every time.
- Percent: a share of the transaction.
- Remainder: whatever is left. Use it for the part that changes from month to month.
A split takes 2 to 20 lines and works one of three ways:
- Percentages only: they must add up to 100.
- Fixed amounts and a remainder: for example, a rent payment of about $1,875 split into $1,700 of Rent, $125 of Parking and the Remainder under Utilities, so the water bill can change each month.
- Fixed amounts only: set both amount conditions to exactly their total, so the rule only matches a payment of that amount.
Mixing fixed amounts and percentages needs a remainder line, and only one line can be the remainder. If a split cannot share out a transaction, for example a $50 fixed line on a $30 payment, the rule leaves it to your next matching rule.
Split rules apply to transactions from your bank connections and when you apply rules to past transactions. Rows from a CSV import or a brokerage account are filed by your other rules but never split. To split a single transaction by hand instead, see Editing, adding and deleting transactions.
Brokerage transactions
Your rules also apply to brokerage transactions, such as buys, sells and dividends from a connected investment account. Mozaic files these by activity type first, for example a buy goes in Investment Deposits. A rule you create replaces that category on new transactions. For a transaction with a ticker symbol, Always categorize this merchant as… in its category menu creates that rule for the ticker and refiles your other transactions of it.
A rule never moves a brokerage transaction into or out of income. A rule for a ticker that files its buys under Investment Transfer leaves that fund’s dividends in Dividend Income.
Apply rules to past transactions
Apply on a rule, Apply All at the top of the page, and Apply to Existing in the rule form only fill uncategorized transactions. They never replace a category that’s already set. To change transactions that already have a category, edit them, or use Categorize on a selection in the Transactions list.
How Mozaic learns from your edits
Each time you change a transaction’s category, Mozaic:
- Creates or updates a Learned from your edits rule for that merchant, used for future transactions. It recognizes the merchant across branches and store numbers.
- Offers to refile your other stored transactions from the same merchant, in the same books (personal or business) and the same direction (money in or money out), that you haven’t edited or confirmed by hand. A message says how many could take the new category. Select Apply to refile them before the message closes; if you don’t, they keep their category. A message then says how many were updated.
A few limits apply:
- Transactions matched by one of your active rules keep that rule’s category.
- If you already file the merchant under more than one category by hand, such as fuel and groceries at Costco, Mozaic offers only the transactions that look like the ones you filed under the new category: the same words in the bank’s description (such as “gas”), or else the closest amounts. Until you’ve filed at least two transactions under each category, none are offered. Those you refile land on the To review list so you can check them.
- A change in your personal books never refiles your business.
- Nothing is learned for brokerage transactions (create a rule for them instead), for transactions without a merchant name, or when one of your own rules (active or switched off) already covers the merchant.
Turn rules off or clean up
- Disable pauses a rule without deleting it; Enable turns it back on. A rule you switched off stays off.
- Clean Up deletes the rules that never matched a transaction.
- Delete removes one rule; Delete All removes every rule. Both are permanent.
Was this article helpful?
Thanks for letting us know.
Sorry about that. Email us and say what you were looking for, we read every message. support@mozaicfinance.com