> For the complete documentation index, see [llms.txt](https://smartbooks.gitbook.io/smartbooks-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smartbooks.gitbook.io/smartbooks-docs/data-models/modules/filtering-using-totals.md).

# Filtering using Totals

For totals, you have the ability to filter based on the attributes you have specified. When defining totals, use the following code to apply the filter:

```
Attribute('YourAccountCode', account = '{currentAccount}') == 'YourCondition'
```

Replace `'YourAccountCode'` and `'YourCondition'` with the appropriate values for your setup. Leave the `{currentAccount}` part unchanged.
