RevealBi/Reveal.Sdk

[BUG]: Calculated date field not respecting sort

Opened this issue · 5 comments

SDK Version

1.6.4

Client Framework

React

Server Platform

Java

Operating System

Linux

Description

This is a column that is a calculated field and date formatted. It is clearly sorted but the sort is not taking into account. If a user clicks on the column header and hits sort it works. But by default it won't sort.
Screenshot_2024-06-05_at_3 48 08_PM

Screenshot_2024-06-06_at_10 14 18_AM

As a note on the same visualization, I added another standard date field and used the sort and there was no issue.

Hi @narimanshariat

Could you share what kind of datasource are you using in your code?

Another quick question.. are those fields of date type?

Source is Postgres with datatype Date
Screenshot 2024-06-11 at 10 21 40 AM

Screenshot 2024-06-11 at 10 31 23 AM

Thanks for your response.

We could reproduce it when a visualization is being edited and created an internal issue AB#31848

You will get any update here.

Regards.

@narimanshariat As a workaround, while we take care of the issue, you can evaluate using a Pivot instead of a Grid. As long as you use a group of rows so that every tuple is unique, you should be able to get the desired output, while also sorting (since this issue is specific for Grid).