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

Calculated table columns repeats the value #2309

Open
holroy opened this issue Apr 17, 2024 · 0 comments
Open

Calculated table columns repeats the value #2309

holroy opened this issue Apr 17, 2024 · 0 comments
Labels
bug Something isn't working.

Comments

@holroy
Copy link
Contributor

holroy commented Apr 17, 2024

What happened?

I expected to see a table with some values in the two first columns, and different answers to the formulas a-b and a+b in the last two columns. If they're named the same, the result of the last calculation is repeated, and if they have different names (or no names), only the last is shown.

With same name (as in the query listed below):
image

If as result is removed:
image

I'm not sure if this is somehow related to either #2216 or #2300, but it for sure is not correct behaviour.

DQL

```dataview
TABLE WITHOUT ID a, b, (a-b) as result, (a+b) as result
WHERE file = this.file
FLATTEN [
[1, 2],
[3, 4],
[5, 9]
] as val
FLATTEN val[0] as a
FLATTEN val[1] as b
```

JS

No response

Dataview Version

0.5.66

Obsidian Version

1.5.12

OS

MacOS

@holroy holroy added the bug Something isn't working. label Apr 17, 2024
@holroy holroy changed the title Calculated table columns not c Calculated table columns repeats the value Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant