MATIH Platform is in active MVP development. Documentation reflects current implementation status.
12. AI Service
BI Analytics Platform
Query Filters

Query Filters

Production - Dynamic filtering, filter presets, cross-widget filtering

The Filter system provides dynamic query filtering capabilities for dashboards and reports. Filters can be applied across multiple widgets and persisted as presets.


12.4.5.1Filter Types

Filter TypeDescriptionExample
date_rangeDate/time range selectionLast 30 days, Q4 2024
selectSingle value selectionRegion = "EMEA"
multi_selectMultiple value selectionRegions in ["EMEA", "APAC"]
numeric_rangeNumeric rangeRevenue between 1Kand1K and 100K
searchText search/containsCustomer name contains "tech"
# Add filter to dashboard
curl -X POST http://localhost:8000/api/v1/bi/dashboards/{dashboard_id}/filters \
  -H "Content-Type: application/json" \
  -H "X-Tenant-ID: acme-corp" \
  -d '{
    "name": "Date Range",
    "filter_type": "date_range",
    "column": "order_date",
    "default_value": {"start": "2024-10-01", "end": "2024-12-31"},
    "apply_to_widgets": ["widget-1", "widget-2", "widget-3"]
  }'