Skip to content

docs(breakdowns): Document SQL expression aliasing for readable labels#16495

Open
inkeep[bot] wants to merge 1 commit intomasterfrom
docs-writer-ai-update-2026-04-21T18-03-16-678Z-6w5o47
Open

docs(breakdowns): Document SQL expression aliasing for readable labels#16495
inkeep[bot] wants to merge 1 commit intomasterfrom
docs-writer-ai-update-2026-04-21T18-03-16-678Z-6w5o47

Conversation

@inkeep
Copy link
Copy Markdown
Contributor

@inkeep inkeep Bot commented Apr 21, 2026

Changes

Adds documentation for the SQL expression aliasing technique in breakdown configurations. Users can add AS column_name or -- column_name to the end of their SQL expressions to create readable labels in charts and tables, rather than showing raw SQL expressions.

This documents functionality that was already available but not previously documented. PR PostHog/posthog#55405 adds an in-product hint surfacing this tip, and this docs update ensures the information is also available in the documentation.

Related PR


This PR was created by the Inkeep Content Writer agent, which is maintained by the Docs and Wizard team. Please reach out on Slack for help if needed.

Document the `AS column_name` and `-- column_name` aliasing technique
for SQL breakdown expressions, matching the in-product hint added in
PostHog/posthog#55405.
@inkeep inkeep Bot requested a review from rafaeelaudibert April 21, 2026 18:04
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Apr 21, 2026 06:11PM

@github-actions
Copy link
Copy Markdown
Contributor

Vale prose linter → found 0 errors, 8 warnings, 0 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/docs/product-analytics/trends/breakdowns.mdx — 0 errors, 8 warnings, 0 suggestions
Line Severity Message Rule
11:66 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
13:66 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
15:66 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
17:66 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
19:66 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
21:66 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
23:66 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
25:66 warning Use 'PostHog' instead of 'posthog'. Vale.Terms

@github-actions
Copy link
Copy Markdown
Contributor

Hey @rafaeelaudibert! This docs PR was generated for you by an agent. You're responsible for reviewing and merging it into production.

  1. Review and approve the PR
  2. Merge the PR
    a. Check the preview env and CI build and merge it yourself
    b. Enable auto-merge if you're confident in the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant