# Filters

<figure><img src="https://2481481593-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtLaMDbvbGOow76E8CnqW%2Fuploads%2Fm9fyKQB5pD6Vpn5Dj2Bb%2Fsync%20filters.gif?alt=media&#x26;token=baacefe3-9383-4470-89c1-107a40935bd3" alt=""><figcaption><p>Adding a filter that will only sync records when a particular field is true</p></figcaption></figure>

### Filter settings can only be edited *before* the initial sync

When you are creating a new table mapping, you are able to set filters. Once data in those tables sync, you cannot change the filter settings.

<figure><img src="https://2481481593-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtLaMDbvbGOow76E8CnqW%2Fuploads%2FvgJwoD0ro1XrXzVSNjtA%2Fno%20edit.png?alt=media&#x26;token=963f667b-a7d4-4a50-8286-e1d7ac66f0c0" alt=""><figcaption></figcaption></figure>

### Filters sync the *final* update before future updates are excluded

For instance, if you change a record from ‘John’ to ‘Sarah’ in Google Sheets, Whalesync will sync this last update to Affinity. After that final sync, changes to the now 'Sarah' record will be filtered out.

<figure><img src="https://2481481593-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtLaMDbvbGOow76E8CnqW%2Fuploads%2FsBTdo4pkmhTStKu5006B%2Fupdate.gif?alt=media&#x26;token=ade2b3b3-5820-48cb-a3f4-4b3fdc519b5f" alt=""><figcaption><p>Updating a record in a way that removes it from the filter</p></figcaption></figure>

## FAQ

### **Will setting a filter delete any of my existing data?**

No, adding a filter won’t remove existing data. Filters apply to any *future* updates.

### **Are filters case sensitive?**

Yes.

<figure><img src="https://2481481593-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtLaMDbvbGOow76E8CnqW%2Fuploads%2FFQ6zzZopxHUYBnjknOTB%2Ffilter%20example.png?alt=media&#x26;token=720051a9-edc3-4eea-9908-f78dab8391fb" alt=""><figcaption><p>This will only sync records that equal "John" and will not sync records that equal "john"</p></figcaption></figure>

### **How should I write percentage values?**

Percentage values should be written as numbers.

<figure><img src="https://2481481593-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtLaMDbvbGOow76E8CnqW%2Fuploads%2FAtLTRkfsBPWglDwmfuCY%2Fimage.png?alt=media&#x26;token=bbe13fca-c24e-443a-a00f-8bd762974520" alt=""><figcaption><p>This will only sync records that have a "Percent" value above 10%</p></figcaption></figure>

### Is there any way I can edit a filter after the initial sync?

Unfortunately Whalesync does not support editing a sync filter after a sync has been turned on. However, by using [record matching](https://docs.whalesync.com/features/record-matching), you can work around this.

Let's say you have a sync between App A and App B. By deleting the existing sync and creating a new sync, you can effectively edit the filter:

1. Make sure that all records in synced tables have a unique identifier that can be used for record matching
2. Delete the original sync between App A and App B
3. Create a new sync between App A and App B
4. Create the desired filter
5. When asked how you wish to match up existing records (via [record matching](https://docs.whalesync.com/features/record-matching)), choose the unique identifier you made a note of in step 1

Now you should have a working sync that has the same configuration as the original sync, but with the new filter.
