TL;DR InfluxDB Tech Tips: Multiple Aggregations with yield() in Flux
Blog post from InfluxData
The yield() function in Flux is used to determine which table inputs should be returned in a script and assigns a name to the output of a query. This function allows multiple aggregations to be returned simultaneously by invoking multiple yield() functions within a single Flux script. By using variables, users can store the base query and reference it for multiple aggregations without querying the entire dataset multiple times. The yield() function is important because it enables the return of multiple table streams from a single Flux script at different points in time.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Real-time | 2 | 1,000 | 272 | 101 | +11% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.