Skip to main content
The line chart on every Visibility tile in the Profound app is one call with the date dimension added. Use date_interval to switch between day, week, and month buckets.
Don’t average daily rows to derive a period score — they’re computed differently. See Conventions & gotchas.

How this example works

  1. Add date to dimensions and set date_interval ("day" / "week" / "month"). One row per bucket. Different bucket sizes give different numbers — see Headline + daily.
  2. Filter by asset so each bucket is one row.
  3. Read positions from info.query instead of hardcoding them.

Switching the bucket

Swap date_interval to roll the data up to coarser buckets: The number of returned rows scales with the bucket size for the same window.