Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Sorting on implicit columns leads to incorrect offset calculation #42726

Open
Tracked by #40313
perivamsi opened this issue May 15, 2024 · 1 comment
Open
Tracked by #40313

Comments

@perivamsi
Copy link
Contributor

perivamsi commented May 15, 2024

  1. New question > Orders (from the sample data)
  2. Select Product -> ID as the sort column
  3. Add a custom column with prev total = Offset([Total] ,-1)

The results do not make sense - the prev total does not correspond to the total column from the previous row.

Screenshot 2024-05-15 at 3 58 31 PM
@camsaul
Copy link
Member

camsaul commented May 24, 2024

order is indeterminate because sort order is indeterminate. See https://metaboat.slack.com/archives/C06P22KS4JH/p1716516438513129?thread_ts=1715803145.456429&cid=C06P22KS4JH for more info

image

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

No branches or pull requests

2 participants