I'm trying to get the latest Date group by an attribute in mm/dd/yyyy format. My code is:
select MAX(Date (Ticket Created Date)) BY EntityID
I've already tried to edit “Metric format” to “mm/dd/yyyy” format, but I wasn't successful. Do you have any better idea how to do it? Thanks
Your metric returns a number (
idof the day), not the date in themm/dd/yyyyformat. You can use a custom number formatting to change the display in the numeric expression. Detailed information can be found in the documentation.There you'll find the following example
This shows the dates in the
yyyymmddformat, so you need to tweak it a bit to createmm/dd/yyyy:You can then set the format to
00/00/0000. But note that sorting this value is not easy, unlike theyyyymmdd.