PostHog / PostHog/posthog

Bug report: Trends - total value bar chart renders empty even when data exists

Open
#60,163 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature/trends team/product-analytics
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Bug Description

Please describe

A Trends insight using "Property value sum" on a numeric property across multiple series shows data correctly in the most visualizations (e.g. Total Value > Table view and Time Series > Bar chart, but incorrectly shows There are no matching events for this query empty when the Total Value > Bar chart visualization is selected.

How to reproduce

  1. View this reported example or create a Trends insight with one or more series using "Property value sum" on a numeric event property, each with a property filter (e.g. filtering by a category value)
  2. Switch the visualization to Total Value > Bar chart
  3. See the There are no matching events for this query message
  4. Switch the visualization type to Total Value > Table and see that the data appears correctly, with expected sums
  5. Switch to Time Series > Bar chart: data also appears correctly
    (Step 3 is where you'll see the bug.)

Additional context

From: https://posthoghelp.zendesk.com/agent/tickets/59052 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/59997)

Debug info
Debug info
Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/019e662e-581a-75e9-b409-3bf91ad5e8fe?t=740
Admin: http://go/adminOrgUS/018fa11a-6593-0000-fc53-807b51d0120e (project ID 70162)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the linked Trends insight and compare Total Value > Bar chart with Total Value > Table and Time Series > Bar chart. Trace the Trends visualization entry point for the Total Value bar chart and its handling of Property value sum data with property filters. Done means the bar chart displays the existing sums instead of the empty-state message, without regressing the other visualizations.

Written by the indexing model from the issue text.

Assessment

Domain
analytics, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.