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

Date/Date & Time native values retrieved as integers #52

Open
florent-guinard opened this issue Dec 14, 2022 · 3 comments
Open

Date/Date & Time native values retrieved as integers #52

florent-guinard opened this issue Dec 14, 2022 · 3 comments

Comments

@florent-guinard
Copy link

We have a Worksheet with Date/Date & Time dimensions used with the 'D/M/YY' display:
image

When we try to retrieve the summary/underlying data of this Worksheet with the Embedding API we get integer native values in the YYYYMMDD format:
image

instead of the expected "date/datetime" type and Date values we get when we use another display option:
image

Link to the test project:
https://glitch.com/edit/#!/thoughtful-remarkable-lightning

The test Workbook:
Workbook date _ datetime.zip

@bcantoni
Copy link
Contributor

bcantoni commented Jun 13, 2024

We believe this is working as designed. The underlying data is not aware of the desired viz date format.

@florent-guinard
Copy link
Author

florent-guinard commented Jun 14, 2024

Hi @bcantoni,

Thanks for coming back to us on this issue (and a the other ones we had opened)!

The underlying data is not aware of the desired viz date format.

I can agree on that but in the screenshot we sent the issue is experienced in the Summary Data.

The "DAY()" function has a "date-time" data type whereas the "MDY()" function has an "int" data type, even though the produce the exact same formatted value (a date).

@bcantoni
Copy link
Contributor

Thanks @florent-guinard for the additional feedback; I'll go ahead and reopen this one so we can investigate.

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