embedding-api-v3-guide icon indicating copy to clipboard operation
embedding-api-v3-guide copied to clipboard

Date/Date & Time native values retrieved as integers

Open florent-guinard opened this issue 3 years ago • 3 comments

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

florent-guinard avatar Dec 14 '22 10:12 florent-guinard

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

bcantoni avatar Jun 13 '24 19:06 bcantoni

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).

florent-guinard avatar Jun 14 '24 07:06 florent-guinard

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

bcantoni avatar Jun 14 '24 14:06 bcantoni