To select all invoices (factures) from a specific company that are from today in AppSheet, you’ll typically use filter expressions in either:
- A slice (to filter rows of your data source like Google Sheets), or
- A UX component like a Table, List, or Gallery.
✅ Step-by-Step: Filtering Invoices by Company and Today's Date
📁 Assumptions:
Let’s assume your table is called Invoices and has the following columns:
| Column Name | Description |
|---|
Company | The name of the company |
InvoiceDate | The date of the invoice (DATE type) |
FactureNumber | Invoice number |
You want to show only:
- Invoices where
Company = "ABC Corp"
- And
InvoiceDate = TODAY()
🔧 Option 1: Using a Slice (Best for Reusable Filters)
1. Go to Table > Slices in the AppSheet Editor
Click Add New Slice
2. Configure the Slice:
- Slice name:
Today_ABC_Invoices
- Base table:
Invoices
- Include rows where:
(Company = "ABC Corp") AND (InvoiceDate = TODAY())
💡 Tip: Use the expression builder to avoid syntax errors.
3. Save the Slice
Now you can use this slice anywhere in your app — for example, in a Table view or as a data source for a chart.
🖥️ Option 2: Filter Directly in a UX Component (e.g., Table or List)
If you're adding a Table or List to your UX:
- Add a new Table or List section.
- Set the Source to:
Invoices
- Under Filter, enter:
([Company] = "ABC Corp") AND ([InvoiceDate] = TODAY())
This filters the visible rows dynamically when users open the screen.
🕒 Notes on TODAY() in AppSheet
TODAY() returns the current date at the time of evaluation.
- It updates daily, so tomorrow it will show tomorrow’s date.
- Make sure your
InvoiceDate column is of type Date (not text or datetime). You can check this under Data > Columns > InvoiceDate > Type.
🧪 Optional: Test with a Valid If Rule (for validation/testing)
If you're experimenting, you can temporarily add a virtual column with this formula:
IF(
([Company] = "ABC Corp") AND ([InvoiceDate] = TODAY()),
"Match",
"No Match"
)
Useful for debugging which rows match your condition.
🎯 Summary Expression
Use this expression wherever needed:
([Company] = "ABC Corp") AND ([InvoiceDate] = TODAY())
Would you like help filtering dynamically based on user input (like selecting a company from a dropdown)? I can walk you through that too!